Helpviewer/HelpWindow.py

changeset 1853
01812b281a1e
parent 1781
34a44041c4cb
child 1913
52aff7b0677a
equal deleted inserted replaced
1852:12d37ab1baf3 1853:01812b281a1e
2540 dlg = HelpClearPrivateDataDialog(self) 2540 dlg = HelpClearPrivateDataDialog(self)
2541 if dlg.exec_() == QDialog.Accepted: 2541 if dlg.exec_() == QDialog.Accepted:
2542 # browsing history, search history, favicons, disk cache, cookies, 2542 # browsing history, search history, favicons, disk cache, cookies,
2543 # passwords, web databases, downloads 2543 # passwords, web databases, downloads
2544 (history, searches, favicons, cache, cookies, 2544 (history, searches, favicons, cache, cookies,
2545 passwords, databases, downloads) = \ 2545 passwords, databases, downloads, flashCookies, historyPeriod) = \
2546 dlg.getData() 2546 dlg.getData()
2547 if history: 2547 if history:
2548 self.historyManager().clear() 2548 self.historyManager().clear(historyPeriod)
2549 if searches: 2549 if searches:
2550 self.searchEdit.clear() 2550 self.searchEdit.clear()
2551 if downloads: 2551 if downloads:
2552 self.downloadManager().cleanup() 2552 self.downloadManager().cleanup()
2553 self.downloadManager().hide() 2553 self.downloadManager().hide()
2567 QWebDatabase.removeAllDatabases() 2567 QWebDatabase.removeAllDatabases()
2568 else: 2568 else:
2569 for securityOrigin in QWebSecurityOrigin.allOrigins(): 2569 for securityOrigin in QWebSecurityOrigin.allOrigins():
2570 for database in securityOrigin.databases(): 2570 for database in securityOrigin.databases():
2571 QWebDatabase.removeDatabase(database) 2571 QWebDatabase.removeDatabase(database)
2572 if flashCookies:
2573 languages = Preferences.toList(
2574 Preferences.Prefs.settings.value("Help/AcceptLanguages",
2575 HelpLanguagesDialog.defaultAcceptLanguages()))
2576 if languages:
2577 language = languages[0]
2578 langCode = language.split("[")[1][:2]
2579 self.newTab("http://www.macromedia.com/support/documentation/"
2580 "{0}/flashplayer/help/settings_manager07.html".format(
2581 langCode))
2572 2582
2573 def __showEnginesConfigurationDialog(self): 2583 def __showEnginesConfigurationDialog(self):
2574 """ 2584 """
2575 Private slot to show the search engines configuration dialog. 2585 Private slot to show the search engines configuration dialog.
2576 """ 2586 """

eric ide

mercurial