--- 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):