diff -r 6dc5b1db7bdc -r 349308e84eeb eric6/WebBrowser/WebBrowserTabBar.py --- a/eric6/WebBrowser/WebBrowserTabBar.py Mon Apr 12 18:25:52 2021 +0200 +++ b/eric6/WebBrowser/WebBrowserTabBar.py Mon Apr 12 19:05:23 2021 +0200 @@ -107,15 +107,13 @@ if ( tabIndex != -1 and tabIndex != self.currentIndex() and - evt.buttons() == Qt.MouseButton.NoButton + evt.buttons() == Qt.MouseButton.NoButton and + (self.__previewPopup is None or + (self.__previewPopup is not None and + self.__previewPopup.getCustomData("index") != tabIndex) + ) ): - if ( - self.__previewPopup is None or - (self.__previewPopup is not None and - self.__previewPopup.getCustomData("index") != tabIndex) - ): - QTimer.singleShot( - 0, lambda: self.__showTabPreview(tabIndex)) + QTimer.singleShot(0, lambda: self.__showTabPreview(tabIndex)) # If current tab or not found then hide previous tab preview if tabIndex in (self.currentIndex(), -1):