6391 from .ClearPrivateDataDialog import ClearPrivateDataDialog |
6391 from .ClearPrivateDataDialog import ClearPrivateDataDialog |
6392 dlg = ClearPrivateDataDialog(self) |
6392 dlg = ClearPrivateDataDialog(self) |
6393 if dlg.exec() == QDialog.DialogCode.Accepted: |
6393 if dlg.exec() == QDialog.DialogCode.Accepted: |
6394 # recent files, recent projects, recent multi projects, |
6394 # recent files, recent projects, recent multi projects, |
6395 # debug histories, shell histories |
6395 # debug histories, shell histories |
6396 (files, projects, multiProjects, debug, shell, vcs, plugins) = ( |
6396 (files, projects, multiProjects, debug, shell, unittests, vcs, |
6397 dlg.getData() |
6397 plugins) = dlg.getData() |
6398 ) |
|
6399 if files: |
6398 if files: |
6400 # clear list of recently opened files |
6399 # clear list of recently opened files |
6401 self.viewmanager.clearRecent() |
6400 self.viewmanager.clearRecent() |
6402 if projects: |
6401 if projects: |
6403 # clear list of recently opened projects and other histories |
6402 # clear list of recently opened projects and other histories |
6409 # clear the various debug histories |
6408 # clear the various debug histories |
6410 self.debuggerUI.clearHistories() |
6409 self.debuggerUI.clearHistories() |
6411 if shell: |
6410 if shell: |
6412 # clear the shell histories |
6411 # clear the shell histories |
6413 self.shell.clearAllHistories() |
6412 self.shell.clearAllHistories() |
|
6413 if unittests: |
|
6414 # clear the unit test histories |
|
6415 if self.unittestDialog is None: |
|
6416 from PyUnit.UnittestDialog import clearSavedHistories |
|
6417 clearSavedHistories() |
|
6418 else: |
|
6419 self.unittestDialog.clearRecent() |
6414 if vcs: |
6420 if vcs: |
6415 # clear the VCS related histories |
6421 # clear the VCS related histories |
6416 self.pluginManager.clearPluginsPrivateData("version_control") |
6422 self.pluginManager.clearPluginsPrivateData("version_control") |
6417 if plugins: |
6423 if plugins: |
6418 # clear private data of plug-ins not covered above |
6424 # clear private data of plug-ins not covered above |