Small oops -- it is possible for qv to be None.

This commit is contained in:
Charles Haley 2017-07-04 17:04:37 +02:00
parent 1836dc5d6f
commit 312304d51c

View File

@ -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