mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
1de1d03aea
commit
003394c671
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user