UI/UserInterface.py

branch
maintenance
changeset 5576
c866ec38662d
parent 5505
53aee4b35f34
parent 5555
5ece4e830780
child 5635
7826d803fb58
diff -r e6c917c0cb97 -r c866ec38662d UI/UserInterface.py
--- a/UI/UserInterface.py	Sun Feb 26 15:54:49 2017 +0100
+++ b/UI/UserInterface.py	Fri Mar 03 18:34:21 2017 +0100
@@ -5669,13 +5669,14 @@
         if dlg.exec_() == QDialog.Accepted:
             # recent files, recent projects, recent multi  projects,
             # debug histories, shell histories
-            (files, projects, multiProjects, debug, shell) = dlg.getData()
+            (files, projects, multiProjects, debug, shell, vcs, plugins) = \
+                dlg.getData()
             if files:
                 # clear list of recently opened files
                 self.viewmanager.clearRecent()
             if projects:
-                # clear list of recently opened projects
-                self.project.clearRecent()
+                # clear list of recently opened projects and other histories
+                self.project.clearHistories()
             if multiProjects:
                 # clear list of recently opened multi projects
                 self.multiProject.clearRecent()
@@ -5685,7 +5686,15 @@
             if shell:
                 # clear the shell histories
                 self.shell.clearAllHistories()
-        
+            if vcs:
+                # clear the VCS related histories
+                self.pluginManager.clearPluginsPrivateData("version_control")
+            if plugins:
+                # clear private data of plug-ins not covered above
+                self.pluginManager.clearPluginsPrivateData("")
+            
+            Preferences.syncPreferences()
+    
     def __newProject(self):
         """
         Private slot to handle the NewProject signal.

eric ide

mercurial