Fixed a bug in E5FileDialog.py.

Sun, 29 Aug 2010 16:29:33 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 29 Aug 2010 16:29:33 +0200
changeset 523
596ad929137e
parent 520
b0f523c3b037
child 524
d66ebf1a33e2

Fixed a bug in E5FileDialog.py.

E5Gui/E5FileDialog.py file | annotate | diff | comparison | revisions
diff -r b0f523c3b037 -r 596ad929137e E5Gui/E5FileDialog.py
--- a/E5Gui/E5FileDialog.py	Sun Aug 29 16:15:41 2010 +0200
+++ b/E5Gui/E5FileDialog.py	Sun Aug 29 16:29:33 2010 +0200
@@ -21,7 +21,7 @@
     """
     if initialFilter:
         fileFilters = filter.split(';;')
-        if len(fileFilters < 10) and initialFilter in fileFilters:
+        if len(fileFilters) < 10 and initialFilter in fileFilters:
             fileFilters.remove(initialFilter)
         fileFilters.insert(0, initialFilter)
         return ";;".join(fileFilters)

eric ide

mercurial