eric7/UI/UserInterface.py

branch
eric7
changeset 8546
52454036c2b2
parent 8466
bb21fd901f49
child 8553
10d31e5ce9e5
diff -r 9c9779b7142a -r 52454036c2b2 eric7/UI/UserInterface.py
--- a/eric7/UI/UserInterface.py	Wed Aug 25 17:44:36 2021 +0200
+++ b/eric7/UI/UserInterface.py	Thu Aug 26 18:08:46 2021 +0200
@@ -6393,9 +6393,8 @@
         if dlg.exec() == QDialog.DialogCode.Accepted:
             # recent files, recent projects, recent multi  projects,
             # debug histories, shell histories
-            (files, projects, multiProjects, debug, shell, vcs, plugins) = (
-                dlg.getData()
-            )
+            (files, projects, multiProjects, debug, shell, unittests, vcs,
+             plugins) = dlg.getData()
             if files:
                 # clear list of recently opened files
                 self.viewmanager.clearRecent()
@@ -6411,6 +6410,13 @@
             if shell:
                 # clear the shell histories
                 self.shell.clearAllHistories()
+            if unittests:
+                # clear the unit test histories
+                if self.unittestDialog is None:
+                    from PyUnit.UnittestDialog import clearSavedHistories
+                    clearSavedHistories()
+                else:
+                    self.unittestDialog.clearRecent()
             if vcs:
                 # clear the VCS related histories
                 self.pluginManager.clearPluginsPrivateData("version_control")

eric ide

mercurial