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 @@ def check_iactions_for_drag(self, event, md, func):
aa = iac.qaction
w = self.widgetForAction(aa)
m = aa.menu()
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
cfunc(event, md)):
getattr(iac, func)(event, md)):
return True
return False