2849 self.saveGeometry()) |
2849 self.saveGeometry()) |
2850 else: |
2850 else: |
2851 Preferences.setGeometry("WebBrowserGeometry", QByteArray()) |
2851 Preferences.setGeometry("WebBrowserGeometry", QByteArray()) |
2852 |
2852 |
2853 try: |
2853 try: |
2854 if self.__fromEric or len(WebBrowserWindow.BrowserWindows) > 1: |
2854 if self.__fromEric or len(WebBrowserWindow.BrowserWindows) > 0: |
2855 del WebBrowserWindow.BrowserWindows[ |
2855 del WebBrowserWindow.BrowserWindows[ |
2856 WebBrowserWindow.BrowserWindows.index(self)] |
2856 WebBrowserWindow.BrowserWindows.index(self)] |
2857 except ValueError: |
2857 except ValueError: |
2858 pass |
2858 pass |
2859 |
2859 |
3135 |
3135 |
3136 @return flag indicating private browsing mode |
3136 @return flag indicating private browsing mode |
3137 @rtype bool |
3137 @rtype bool |
3138 """ |
3138 """ |
3139 return cls._isPrivate |
3139 return cls._isPrivate |
|
3140 |
|
3141 def closeCurrentBrowser(self): |
|
3142 """ |
|
3143 Public method to close the current web browser. |
|
3144 """ |
|
3145 self.__tabWidget.closeBrowser() |
|
3146 |
|
3147 def closeBrowser(self, browser): |
|
3148 """ |
|
3149 Public method to close the given browser. |
|
3150 |
|
3151 @param browser reference to the web browser view to be closed |
|
3152 @type WebBrowserView |
|
3153 """ |
|
3154 self.__tabWidget.closeBrowserView(browser) |
3140 |
3155 |
3141 def currentBrowser(self): |
3156 def currentBrowser(self): |
3142 """ |
3157 """ |
3143 Public method to get a reference to the current web browser. |
3158 Public method to get a reference to the current web browser. |
3144 |
3159 |