mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -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:
|
||||
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…
x
Reference in New Issue
Block a user