From bd444c6d4590e33a55cee3bfa0525de9d8b7f153 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 18 Nov 2010 10:02:40 -0700 Subject: [PATCH] Fix first button not clickable in main toolbar on OS X with Qt 4.7 --- src/calibre/gui2/layout.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calibre/gui2/layout.py b/src/calibre/gui2/layout.py index c6177ed882..aa4b9b30e4 100644 --- a/src/calibre/gui2/layout.py +++ b/src/calibre/gui2/layout.py @@ -316,6 +316,10 @@ class ToolBar(QToolBar): # {{{ if gprefs['show_child_bar']: self.addWidget(self.spacers[3]) + if not gprefs['show_child_bar']: + for s in self.spacers[2:]: + s.setVisible(False) + def setup_tool_button(self, ac, menu_mode=None): ch = self.widgetForAction(ac) if ch is None: