mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 17:34:04 +02:00
Fix #1832780 [Error when changing libraries](https://bugs.launchpad.net/calibre/+bug/1832780)
This commit is contained in:
parent
408990ffd8
commit
5a4ca12432
1 changed files with 4 additions and 0 deletions
|
|
@ -390,7 +390,11 @@ def clone_changed(self):
|
|||
self.clone_menu()
|
||||
|
||||
def about_to_show(self):
|
||||
if sip.isdeleted(self.clone):
|
||||
return
|
||||
cm = self.clone.menu()
|
||||
if cm is None:
|
||||
return
|
||||
before = list(QMenu.actions(cm))
|
||||
cm.aboutToShow.emit()
|
||||
after = list(QMenu.actions(cm))
|
||||
|
|
|
|||
Loading…
Reference in a new issue