mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Small oops -- it is possible for qv to be None.
This commit is contained in:
parent
1836dc5d6f
commit
312304d51c
@ -589,7 +589,7 @@ class LayoutMixin(object): # {{{
|
|||||||
else:
|
else:
|
||||||
if x == 'gv':
|
if x == 'gv':
|
||||||
button = self.grid_view_button
|
button = self.grid_view_button
|
||||||
elif x == 'qv':
|
elif x == 'qv' and self.qv:
|
||||||
button = self.qv.qv_button
|
button = self.qv.qv_button
|
||||||
else:
|
else:
|
||||||
button = self.search_bar_button
|
button = self.search_bar_button
|
||||||
|
Loading…
x
Reference in New Issue
Block a user