Fix first button not clickable in main toolbar on OS X with Qt 4.7

This commit is contained in:
Kovid Goyal 2010-11-18 10:02:40 -07:00
parent 2912aafc4a
commit bd444c6d45

View File

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