Fixed a strange behavior of the find file dialog.

Tue, 26 Apr 2011 13:55:10 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 26 Apr 2011 13:55:10 +0200
changeset 998
eb7a1af5d9fc
parent 996
5eddcfeb8948
child 1000
c9f094c33a1d

Fixed a strange behavior of the find file dialog.

UI/FindFileNameDialog.py file | annotate | diff | comparison | revisions
--- a/UI/FindFileNameDialog.py	Tue Apr 26 13:51:35 2011 +0200
+++ b/UI/FindFileNameDialog.py	Tue Apr 26 13:55:10 2011 +0200
@@ -94,12 +94,17 @@
         """
         fileName = self.fileNameEdit.text()
         if not fileName:
+            self.fileList.clear()
             return
         fileExt = self.fileExtEdit.text()
+        if not fileExt and Utilities.isWindowsPlatform():
+            self.fileList.clear()
+            return
+        
         patternFormat = fileExt and "{0}{1}{2}*" or "{0}*{1}{2}"
         fileNamePattern = patternFormat.format(fileName, os.extsep,
             fileExt and fileExt or '*')
-            
+        
         searchPaths = []
         if self.searchDirCheckBox.isChecked() and \
            self.searchDirEdit.text() != "":
@@ -108,7 +113,7 @@
             searchPaths.append(self.project.ppath)
         if self.syspathCheckBox.isChecked():
             searchPaths.extend(sys.path)
-            
+        
         found = False
         self.fileList.clear()
         locations = {}

eric ide

mercurial