MultiProject/MultiProject.py

changeset 335
5ad648828e2e
parent 96
9624a110667d
child 414
8c91e942d2da
child 516
1a57b04e3bd2
--- a/MultiProject/MultiProject.py	Wed Jun 09 17:45:51 2010 +0200
+++ b/MultiProject/MultiProject.py	Thu Jun 10 09:13:00 2010 +0200
@@ -840,8 +840,9 @@
         Private method to synchronize the list of recently opened multi projects
         with the central store.
         """
-        if self.pfile in self.recent:
-            self.recent.remove(self.pfile)
+        for recent in self.recent[:]:
+            if Utilities.samepath(self.pfile, recent):
+                self.recent.remove(recent)
         self.recent.insert(0, self.pfile)
         maxRecent = Preferences.getProject("RecentNumber")
         if len(self.recent) > maxRecent:

eric ide

mercurial