184 self.webProfile(private) |
184 self.webProfile(private) |
185 self.networkManager() |
185 self.networkManager() |
186 |
186 |
187 self.__htmlFullScreen = False |
187 self.__htmlFullScreen = False |
188 self.__windowStates = Qt.WindowNoState |
188 self.__windowStates = Qt.WindowNoState |
|
189 self.__isClosing = False |
189 |
190 |
190 from .SearchWidget import SearchWidget |
191 from .SearchWidget import SearchWidget |
191 from .QtHelp.HelpTocWidget import HelpTocWidget |
192 from .QtHelp.HelpTocWidget import HelpTocWidget |
192 from .QtHelp.HelpIndexWidget import HelpIndexWidget |
193 from .QtHelp.HelpIndexWidget import HelpIndexWidget |
193 from .QtHelp.HelpSearchWidget import HelpSearchWidget |
194 from .QtHelp.HelpSearchWidget import HelpSearchWidget |
2788 e.accept() |
2789 e.accept() |
2789 self.webBrowserWindowClosed.emit(self) |
2790 self.webBrowserWindowClosed.emit(self) |
2790 else: |
2791 else: |
2791 e.ignore() |
2792 e.ignore() |
2792 |
2793 |
|
2794 def isClosing(self): |
|
2795 """ |
|
2796 Public method to test, if the window is closing. |
|
2797 |
|
2798 @return flag indicating that the window is closing |
|
2799 @rtype bool |
|
2800 """ |
|
2801 return self.__isClosing |
|
2802 |
2793 def __shutdownWindow(self): |
2803 def __shutdownWindow(self): |
2794 """ |
2804 """ |
2795 Private method to shut down a web browser window. |
2805 Private method to shut down a web browser window. |
2796 |
2806 |
2797 @return flag indicating successful shutdown (boolean) |
2807 @return flag indicating successful shutdown (boolean) |
2798 """ |
2808 """ |
2799 if not WebBrowserWindow._performingShutdown and not self.__forcedClose: |
2809 if not WebBrowserWindow._performingShutdown and not self.__forcedClose: |
2800 if not self.__tabWidget.shallShutDown(): |
2810 if not self.__tabWidget.shallShutDown(): |
2801 return False |
2811 return False |
|
2812 |
|
2813 self.__isClosing = True |
2802 |
2814 |
2803 if not self.__fromEric: |
2815 if not self.__fromEric: |
2804 if not WebBrowserWindow._performingShutdown and \ |
2816 if not WebBrowserWindow._performingShutdown and \ |
2805 len(WebBrowserWindow.BrowserWindows) == 1: |
2817 len(WebBrowserWindow.BrowserWindows) == 1: |
2806 # shut down the session manager in case the last window is |
2818 # shut down the session manager in case the last window is |