Fixed a little issue in ViewManager.py.

Thu, 10 Jan 2013 19:03:16 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 10 Jan 2013 19:03:16 +0100
changeset 2329
7706d05104c5
parent 2327
b054ffacfbe6
child 2331
9e623311630d

Fixed a little issue in ViewManager.py.

ViewManager/ViewManager.py file | annotate | diff | comparison | revisions
--- a/ViewManager/ViewManager.py	Tue Jan 08 19:16:09 2013 +0100
+++ b/ViewManager/ViewManager.py	Thu Jan 10 19:03:16 2013 +0100
@@ -3953,14 +3953,14 @@
         @param language language to display (string)
         @param eol eol indicator to display (string)
         """
-        if fn is None:
+        if not fn:
             fn = ''
-            writ = '   '
+            writ = '  '
         else:
             if QFileInfo(fn).isWritable():
-                writ = ' rw'
+                writ = 'rw'
             else:
-                writ = ' ro'
+                writ = 'ro'
         self.sbWritable.setText(writ)
         self.sbFile.setTextPath(QApplication.translate('ViewManager', 'File: {0}'), fn)
         

eric ide

mercurial