This commit is contained in:
Kovid Goyal 2013-03-04 11:30:45 +05:30
parent 01362f0200
commit e43616c654

View File

@ -125,10 +125,10 @@ class ToolBar(QToolBar): # {{{
aa = iac.qaction
w = self.widgetForAction(aa)
m = aa.menu()
func = getattr(iac, func)
cfunc = getattr(iac, func)
if (( (w is not None and w.geometry().contains(pos)) or
(m is not None and m.isVisible() and m.geometry().contains(pos)) ) and
func(event, md)):
cfunc(event, md)):
return True
return False