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:
Damien Elmes 2018-04-18 13:21:10 +10:00
parent 591f5eaeef
commit eca6ecf90f

View File

@ -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):