ProjectDjango/DjangoDialog.py

changeset 2
1e97424fda0c
parent 1
13a0cced0c6e
child 6
80815349eef4
--- a/ProjectDjango/DjangoDialog.py	Fri Mar 22 19:26:49 2013 +0100
+++ b/ProjectDjango/DjangoDialog.py	Sat Mar 23 19:41:38 2013 +0100
@@ -250,12 +250,12 @@
             self.fileFilters,
             None)
         
-        if not fname.isEmpty():
+        if fname:
             ext = QFileInfo(fname).suffix()
-            if ext.isEmpty():
-                ex = selectedFilter.section('(*', 1, 1).section(')', 0, 0)
-                if not ex.isEmpty():
-                    fname.append(ex)
+            if not ext:
+                ex = selectedFilter.split("(*")[1].split(")")[0]
+                if ex:
+                    fname += ex
             
             txt = self.resultbox.toPlainText()
             

eric ide

mercurial