Fixed another case related issue on Windows.

Thu, 10 Jun 2010 09:13:00 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 10 Jun 2010 09:13:00 +0200
changeset 335
5ad648828e2e
parent 333
fd4e4c1d0852
child 337
22ae08988de7

Fixed another case related issue on Windows.

MultiProject/MultiProject.py file | annotate | diff | comparison | revisions
Project/Project.py file | annotate | diff | comparison | revisions
QScintilla/Terminal.py file | annotate | diff | comparison | revisions
ViewManager/ViewManager.py file | annotate | diff | comparison | revisions
--- 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:
--- a/Project/Project.py	Wed Jun 09 17:45:51 2010 +0200
+++ b/Project/Project.py	Thu Jun 10 09:13:00 2010 +0200
@@ -3873,8 +3873,9 @@
         Private method to synchronize the list of recently opened 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:
@@ -3919,7 +3920,7 @@
         """
         Private method to clear the recent projects menu.
         """
-        self.recent.clear()
+        self.recent = []
         
     def __searchNewFiles(self):
         """
--- a/QScintilla/Terminal.py	Wed Jun 09 17:45:51 2010 +0200
+++ b/QScintilla/Terminal.py	Thu Jun 10 09:13:00 2010 +0200
@@ -381,7 +381,7 @@
         """
         Private slot to clear the current history.
         """
-        self.history.clear()
+        self.history = []
         
     def __selectHistory(self):
         """
--- a/ViewManager/ViewManager.py	Wed Jun 09 17:45:51 2010 +0200
+++ b/ViewManager/ViewManager.py	Thu Jun 10 09:13:00 2010 +0200
@@ -3220,8 +3220,9 @@
         
         @param fn name of the file to be added
         """
-        if fn in self.recent:
-            self.recent.remove(fn)
+        for recent in self.recent[:]:
+            if Utilities.samepath(fn, recent):
+                self.recent.remove(recent)
         self.recent.insert(0, fn)
         maxRecent = Preferences.getUI("RecentNumber")
         if len(self.recent) > maxRecent:

eric ide

mercurial