mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix #1862591 [QResizeEvent error when changing libraries](https://bugs.launchpad.net/calibre/+bug/1862591)
This commit is contained in:
parent
e10dc504cc
commit
d05ac8093c
@ -167,7 +167,7 @@ class DBusMenu(QObject):
|
|||||||
def eventFilter(self, obj, ev):
|
def eventFilter(self, obj, ev):
|
||||||
ac = getattr(obj, 'menuAction', lambda : None)()
|
ac = getattr(obj, 'menuAction', lambda : None)()
|
||||||
ac_id = self.action_to_id(ac)
|
ac_id = self.action_to_id(ac)
|
||||||
if ac_id is not None:
|
if ac_id is not None and hasattr(ev, 'action'):
|
||||||
etype = ev.type()
|
etype = ev.type()
|
||||||
if etype == QEvent.ActionChanged:
|
if etype == QEvent.ActionChanged:
|
||||||
ac_id = self.action_to_id(ev.action())
|
ac_id = self.action_to_id(ev.action())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user