Fixed a little issue in ViewManager.py. 5_3_x

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 10 Jan 2013 19:03:16 +0100
branch
5_3_x
changeset 2330
a288469b3c81
parent 2328
2249a7a683b2
child 2332
e0b023d62b10

Fixed a little issue in ViewManager.py.
(grafted from 7706d05104c5d687224cc7a7154756397f4e055d)

ViewManager/ViewManager.py file | annotate | diff | comparison | revisions
--- a/ViewManager/ViewManager.py	Tue Jan 08 19:14:45 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