From 8162aa04a45e9492761ded4540cb8ffcd72908f4 Mon Sep 17 00:00:00 2001 From: Charles Haley Date: Tue, 4 Jul 2017 18:43:31 +0200 Subject: [PATCH] Ooops again: fix it right. Although I am no longer convinced that the qv plugin can be not installed/enabled. --- src/calibre/gui2/init.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/init.py b/src/calibre/gui2/init.py index 44e8187388..3bd8e9c834 100644 --- a/src/calibre/gui2/init.py +++ b/src/calibre/gui2/init.py @@ -589,7 +589,9 @@ class LayoutMixin(object): # {{{ else: if x == 'gv': 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 else: button = self.search_bar_button