eric7/WebBrowser/UrlBar/FavIconLabel.py

branch
eric7
changeset 8366
2a9f5153c438
parent 8319
ea11a3948f40
child 8881
54e42bc2437a
diff -r cde9bde830ea -r 2a9f5153c438 eric7/WebBrowser/UrlBar/FavIconLabel.py
--- a/eric7/WebBrowser/UrlBar/FavIconLabel.py	Sun May 23 13:33:13 2021 +0200
+++ b/eric7/WebBrowser/UrlBar/FavIconLabel.py	Sun May 23 15:35:49 2021 +0200
@@ -86,10 +86,11 @@
         @param evt reference to the mouse event (QMouseEvent)
         """
         if (
-            evt.button() == Qt.MouseButton.LeftButton and
-            ((evt.position().toPoint() - self.__dragStartPos).manhattanLength() >
-                QApplication.startDragDistance()) and
-            self.__browser is not None
+            evt.button() == Qt.MouseButton.LeftButton and (
+                (evt.position().toPoint() -
+                 self.__dragStartPos).manhattanLength() >
+                QApplication.startDragDistance()
+            ) and self.__browser is not None
         ):
             drag = QDrag(self)
             mimeData = QMimeData()

eric ide

mercurial