MultiProject/MultiProject.py

branch
5_0_x
changeset 336
e48be003c73b
parent 96
9624a110667d
child 414
8c91e942d2da
child 516
1a57b04e3bd2
--- a/MultiProject/MultiProject.py	Wed Jun 09 17:47:05 2010 +0200
+++ b/MultiProject/MultiProject.py	Thu Jun 10 09:14:43 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