mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Small oops -- it is possible for qv to be None.
This commit is contained in:
parent
1836dc5d6f
commit
312304d51c
1 changed files with 1 additions and 1 deletions
|
|
@ -589,7 +589,7 @@ def init_layout_mixin(self):
|
|||
else:
|
||||
if x == 'gv':
|
||||
button = self.grid_view_button
|
||||
elif x == 'qv':
|
||||
elif x == 'qv' and self.qv:
|
||||
button = self.qv.qv_button
|
||||
else:
|
||||
button = self.search_bar_button
|
||||
|
|
|
|||
Loading…
Reference in a new issue