hack around premature completer deletion
haven't been able to identify why qt sometimes deletes the completer early, so just suppress the error for now https://anki.tenderapp.com/discussions/beta-testing/884-freeze-and-sigabrt-when-add-dialog-is-left-open-for-about-one-hour-and-used-afterwards#comment_44837119
This commit is contained in:
parent
591f5eaeef
commit
eca6ecf90f
@ -79,6 +79,8 @@ class TagEdit(QLineEdit):
|
||||
self.completer.popup().hide()
|
||||
|
||||
def hideCompleter(self):
|
||||
if sip.isdeleted(self.completer):
|
||||
return
|
||||
self.completer.popup().hide()
|
||||
|
||||
class TagCompleter(QCompleter):
|
||||
|
Loading…
Reference in New Issue
Block a user