1509 )) |
1509 )) |
1510 if not self.__initShortcutsOnly: |
1510 if not self.__initShortcutsOnly: |
1511 self.clearIconsAct.triggered.connect(self.__clearIconsDatabase) |
1511 self.clearIconsAct.triggered.connect(self.__clearIconsDatabase) |
1512 self.__actions.append(self.clearIconsAct) |
1512 self.__actions.append(self.clearIconsAct) |
1513 |
1513 |
|
1514 self.manageIconsAct = E5Action( |
|
1515 self.tr('Manage saved Favicons'), |
|
1516 UI.PixmapCache.getIcon("icons.png"), |
|
1517 self.tr('Manage saved Favicons'), |
|
1518 0, 0, |
|
1519 self, 'webbrowser_manage_icons_db') |
|
1520 self.manageIconsAct.setStatusTip(self.tr( |
|
1521 'Show a dialog to manage the saved favicons')) |
|
1522 self.manageIconsAct.setWhatsThis(self.tr( |
|
1523 """<b>Manage saved Favicons</b>""" |
|
1524 """<p>This shows a dialog to manage the saved favicons of""" |
|
1525 """ previously visited URLs.</p>""" |
|
1526 )) |
|
1527 if not self.__initShortcutsOnly: |
|
1528 self.manageIconsAct.triggered.connect(self.__showWebIconsDialog) |
|
1529 self.__actions.append(self.manageIconsAct) |
|
1530 |
1514 self.searchEnginesAct = E5Action( |
1531 self.searchEnginesAct = E5Action( |
1515 self.tr('Configure Search Engines'), |
1532 self.tr('Configure Search Engines'), |
1516 self.tr('Configure Search &Engines...'), |
1533 self.tr('Configure Search &Engines...'), |
1517 0, 0, |
1534 0, 0, |
1518 self, 'webbrowser_search_engines') |
1535 self, 'webbrowser_search_engines') |
1869 ## if SSL_AVAILABLE: |
1886 ## if SSL_AVAILABLE: |
1870 ## menu.addAction(self.certificatesAct) |
1887 ## menu.addAction(self.certificatesAct) |
1871 menu.addAction(self.certificateErrorsAct) |
1888 menu.addAction(self.certificateErrorsAct) |
1872 menu.addSeparator() |
1889 menu.addSeparator() |
1873 menu.addAction(self.zoomValuesAct) |
1890 menu.addAction(self.zoomValuesAct) |
|
1891 menu.addAction(self.manageIconsAct) |
1874 menu.addSeparator() |
1892 menu.addSeparator() |
1875 ## menu.addAction(self.adblockAct) |
1893 ## menu.addAction(self.adblockAct) |
1876 ## menu.addAction(self.flashblockAct) |
1894 ## menu.addAction(self.flashblockAct) |
1877 ## menu.addSeparator() |
1895 ## menu.addSeparator() |
1878 self.__settingsMenu = menu |
1896 self.__settingsMenu = menu |
2555 del WebBrowserWindow.BrowserWindows[ |
2573 del WebBrowserWindow.BrowserWindows[ |
2556 WebBrowserWindow.BrowserWindows.index(self)] |
2574 WebBrowserWindow.BrowserWindows.index(self)] |
2557 except ValueError: |
2575 except ValueError: |
2558 pass |
2576 pass |
2559 |
2577 |
|
2578 self.networkManager().shutdown() |
|
2579 |
2560 if not self.__fromEric: |
2580 if not self.__fromEric: |
2561 Preferences.syncPreferences() |
2581 Preferences.syncPreferences() |
2562 |
2582 |
2563 self.__shutdownCalled = True |
2583 self.__shutdownCalled = True |
2564 return True |
2584 return True |
2901 ## cls._cookieJar = CookieJar() |
2921 ## cls._cookieJar = CookieJar() |
2902 ## return cls.networkManager().cookieJar() |
2922 ## return cls.networkManager().cookieJar() |
2903 ## |
2923 ## |
2904 def __clearIconsDatabase(self): |
2924 def __clearIconsDatabase(self): |
2905 """ |
2925 """ |
2906 Private slot to clear the icons databse. |
2926 Private slot to clear the favicons databse. |
2907 """ |
2927 """ |
2908 WebIconProvider.instance().clear() |
2928 WebIconProvider.instance().clear() |
|
2929 |
|
2930 def __showWebIconsDialog(self): |
|
2931 """ |
|
2932 Private slot to show a dialog to manage the favicons database. |
|
2933 """ |
|
2934 WebIconProvider.instance().showWebIconDialog() |
2909 |
2935 |
2910 @pyqtSlot(QUrl) |
2936 @pyqtSlot(QUrl) |
2911 def __linkActivated(self, url): |
2937 def __linkActivated(self, url): |
2912 """ |
2938 """ |
2913 Private slot to handle the selection of a link. |
2939 Private slot to handle the selection of a link. |