eric6/WebBrowser/UrlBar/FavIconLabel.py

changeset 7270
41d09cf20415
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r 0c63ea7f94bd -r 41d09cf20415 eric6/WebBrowser/UrlBar/FavIconLabel.py
--- a/eric6/WebBrowser/UrlBar/FavIconLabel.py	Wed Sep 25 18:52:40 2019 +0200
+++ b/eric6/WebBrowser/UrlBar/FavIconLabel.py	Wed Sep 25 19:00:09 2019 +0200
@@ -86,10 +86,12 @@
         
         @param evt reference to the mouse event (QMouseEvent)
         """
-        if evt.button() == Qt.LeftButton and \
-           (evt.pos() - self.__dragStartPos).manhattanLength() > \
-                QApplication.startDragDistance() and \
-           self.__browser is not None:
+        if (
+            evt.button() == Qt.LeftButton and
+            ((evt.pos() - self.__dragStartPos).manhattanLength() >
+                QApplication.startDragDistance()) and
+            self.__browser is not None
+        ):
             drag = QDrag(self)
             mimeData = QMimeData()
             title = self.__browser.title()

eric ide

mercurial