UI/FindFileDialog.py

changeset 42
23b45a742e17
parent 13
1af94a91f439
child 45
9a18f4dbb493
--- a/UI/FindFileDialog.py	Fri Jan 08 19:14:19 2010 +0000
+++ b/UI/FindFileDialog.py	Sat Jan 09 19:43:36 2010 +0000
@@ -370,7 +370,7 @@
                 text = f.read()
                 lines = text.splitlines()
                 f.close()
-            except IOError:
+            except (IOError, UnicodeError):
                 progress += 1
                 self.findProgress.setValue(progress)
                 continue
@@ -410,6 +410,10 @@
             progress += 1
             self.findProgress.setValue(progress)
         
+        if not files:
+            self.findProgress.setMaximum(1)
+            self.findProgress.setValue(1)
+        
         self.findProgressLabel.setPath("")
         
         self.findList.setUpdatesEnabled(True)

eric ide

mercurial