This commit is contained in:
Kovid Goyal 2019-06-14 08:40:20 +05:30
parent 408990ffd8
commit 5a4ca12432
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -390,7 +390,11 @@ if isosx:
self.clone_menu() self.clone_menu()
def about_to_show(self): def about_to_show(self):
if sip.isdeleted(self.clone):
return
cm = self.clone.menu() cm = self.clone.menu()
if cm is None:
return
before = list(QMenu.actions(cm)) before = list(QMenu.actions(cm))
cm.aboutToShow.emit() cm.aboutToShow.emit()
after = list(QMenu.actions(cm)) after = list(QMenu.actions(cm))