2981 """ |
2981 """ |
2982 from .HelpClearPrivateDataDialog import HelpClearPrivateDataDialog |
2982 from .HelpClearPrivateDataDialog import HelpClearPrivateDataDialog |
2983 dlg = HelpClearPrivateDataDialog(self) |
2983 dlg = HelpClearPrivateDataDialog(self) |
2984 if dlg.exec_() == QDialog.Accepted: |
2984 if dlg.exec_() == QDialog.Accepted: |
2985 # browsing history, search history, favicons, disk cache, cookies, |
2985 # browsing history, search history, favicons, disk cache, cookies, |
2986 # passwords, web databases, downloads |
2986 # passwords, web databases, downloads, Flash cookies |
2987 (history, searches, favicons, cache, cookies, |
2987 (history, searches, favicons, cache, cookies, |
2988 passwords, databases, downloads, flashCookies, historyPeriod) = \ |
2988 passwords, databases, downloads, flashCookies, historyPeriod) = \ |
2989 dlg.getData() |
2989 dlg.getData() |
2990 if history: |
2990 if history: |
2991 self.historyManager().clear(historyPeriod) |
2991 self.historyManager().clear(historyPeriod) |
|
2992 self.tabWidget.clearClosedTabsList() |
2992 if searches: |
2993 if searches: |
2993 self.searchEdit.clear() |
2994 self.searchEdit.clear() |
2994 if downloads: |
2995 if downloads: |
2995 self.downloadManager().cleanup() |
2996 self.downloadManager().cleanup() |
2996 self.downloadManager().hide() |
2997 self.downloadManager().hide() |