mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-24 19:53:31 +02:00
...
This commit is contained in:
parent
1de1d03aea
commit
003394c671
1 changed files with 3 additions and 1 deletions
|
|
@ -124,9 +124,11 @@ def check_iactions_for_drag(self, event, md, func):
|
|||
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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue