WebBrowser/WebBrowserWindow.py

changeset 5793
4ff73b969ab1
parent 5785
7c7c5f9e4fad
child 5820
b610cb5b501a
diff -r 519a193a19d7 -r 4ff73b969ab1 WebBrowser/WebBrowserWindow.py
--- 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:

eric ide

mercurial