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