Ooops again: fix it right. Although I am no longer convinced that the qv plugin can be not installed/enabled.

This commit is contained in:
Charles Haley 2017-07-04 18:43:31 +02:00
parent 312304d51c
commit 8162aa04a4

View File

@ -589,7 +589,9 @@ class LayoutMixin(object): # {{{
else: else:
if x == 'gv': if x == 'gv':
button = self.grid_view_button button = self.grid_view_button
elif x == 'qv' and self.qv: elif x == 'qv':
if self.qv is None:
continue
button = self.qv.qv_button button = self.qv.qv_button
else: else:
button = self.search_bar_button button = self.search_bar_button