eric6/WebBrowser/WebBrowserTabBar.py

changeset 8205
4a0f1f896341
parent 8143
2c730d5fd177
child 8218
7c09585bd960
diff -r fd477cded1c1 -r 4a0f1f896341 eric6/WebBrowser/WebBrowserTabBar.py
--- a/eric6/WebBrowser/WebBrowserTabBar.py	Thu Apr 08 17:27:12 2021 +0200
+++ b/eric6/WebBrowser/WebBrowserTabBar.py	Thu Apr 08 18:27:47 2021 +0200
@@ -118,10 +118,7 @@
                         0, lambda: self.__showTabPreview(tabIndex))
             
             # If current tab or not found then hide previous tab preview
-            if (
-                tabIndex == self.currentIndex() or
-                tabIndex == -1
-            ):
+            if tabIndex in (self.currentIndex(), -1):
                 self.__hidePreview()
     
     def leaveEvent(self, evt):

eric ide

mercurial