This commit is contained in:
Kovid Goyal 2013-03-04 11:12:58 +05:30
parent 1de1d03aea
commit 003394c671

View File

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