This commit is contained in:
Kovid Goyal 2010-02-08 15:20:11 -07:00
parent 2e8abd963d
commit fd64a44c61

View File

@ -280,8 +280,11 @@ class EbookViewer(MainWindow, Ui_EbookViewer):
def restore_state(self): def restore_state(self):
state = dynamic.get('viewer_toolbar_state', None) state = dynamic.get('viewer_toolbar_state', None)
if state is not None: if state is not None:
try:
state = QByteArray(state) state = QByteArray(state)
self.restoreState(state, self.STATE_VERSION) self.restoreState(state, self.STATE_VERSION)
except:
pass
def lookup(self, word): def lookup(self, word):