This commit is contained in:
Kovid Goyal 2013-03-04 11:34:04 +05:30
parent ab44bb5064
commit c274ce5014

View File

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