UI/FindFileNameDialog.py

changeset 998
eb7a1af5d9fc
parent 945
8cd4d08fa9f6
child 1112
8a7d1b9d18db
--- 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