mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix first button not clickable in main toolbar on OS X with Qt 4.7
This commit is contained in:
parent
2912aafc4a
commit
bd444c6d45
@ -316,6 +316,10 @@ class ToolBar(QToolBar): # {{{
|
|||||||
if gprefs['show_child_bar']:
|
if gprefs['show_child_bar']:
|
||||||
self.addWidget(self.spacers[3])
|
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):
|
def setup_tool_button(self, ac, menu_mode=None):
|
||||||
ch = self.widgetForAction(ac)
|
ch = self.widgetForAction(ac)
|
||||||
if ch is None:
|
if ch is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user