mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-23 10:25:34 +01:00
...
This commit is contained in:
parent
2e8abd963d
commit
fd64a44c61
1 changed files with 5 additions and 2 deletions
|
|
@ -280,8 +280,11 @@ def save_state(self):
|
|||
def restore_state(self):
|
||||
state = dynamic.get('viewer_toolbar_state', None)
|
||||
if state is not None:
|
||||
state = QByteArray(state)
|
||||
self.restoreState(state, self.STATE_VERSION)
|
||||
try:
|
||||
state = QByteArray(state)
|
||||
self.restoreState(state, self.STATE_VERSION)
|
||||
except:
|
||||
pass
|
||||
|
||||
|
||||
def lookup(self, word):
|
||||
|
|
|
|||
Loading…
Reference in a new issue