--- a/WebBrowser/WebBrowserWindow.py Thu Jul 06 19:13:51 2017 +0200 +++ b/WebBrowser/WebBrowserWindow.py Fri Jul 07 19:05:53 2017 +0200 @@ -186,6 +186,7 @@ self.__htmlFullScreen = False self.__windowStates = Qt.WindowNoState + self.__isClosing = False from .SearchWidget import SearchWidget from .QtHelp.HelpTocWidget import HelpTocWidget @@ -2790,6 +2791,15 @@ else: e.ignore() + def isClosing(self): + """ + Public method to test, if the window is closing. + + @return flag indicating that the window is closing + @rtype bool + """ + return self.__isClosing + def __shutdownWindow(self): """ Private method to shut down a web browser window. @@ -2800,6 +2810,8 @@ if not self.__tabWidget.shallShutDown(): return False + self.__isClosing = True + if not self.__fromEric: if not WebBrowserWindow._performingShutdown and \ len(WebBrowserWindow.BrowserWindows) == 1: