Fixed a strange behavior of the find file dialog. 5_1_x

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 26 Apr 2011 13:55:27 +0200
branch
5_1_x
changeset 999
e738a45a3dc2
parent 997
270d271a9ef3
child 1001
c4aa6e1a23b7

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:58 2011 +0200
+++ b/UI/FindFileNameDialog.py	Tue Apr 26 13:55:27 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