diff options
author | jerous <jerous@gmail.com> | 2008-06-09 17:14:10 +0200 |
---|---|---|
committer | jerous <jerous@gmail.com> | 2008-06-09 17:14:10 +0200 |
commit | 223ae01b6a1db10052aae061e017d713ad07794a (patch) | |
tree | 82edab61b5a5bd9588ca91970091e6da22057acc /winMain.py | |
parent | 508ef7ec81e5037638965c5698255563e945d90b (diff) |
fix restoring layout when there is no layout file
Diffstat (limited to 'winMain.py')
-rw-r--r-- | winMain.py | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -442,9 +442,12 @@ class winMain(QtGui.QMainWindow): f.write(self.saveState()) f.close() def restoreLayout(self): - f=open('layout', 'rb') - self.restoreState(f.read()) - f.close() + try: + f=open('layout', 'rb') + self.restoreState(f.read()) + f.close() + except: + pass _rowColorModifier=0 _rowColorAdder=1 |