From eca6ecf90faea01014fbe4f1a9d339a190ef97cb Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 18 Apr 2018 13:21:10 +1000 Subject: [PATCH] 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 --- aqt/tagedit.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aqt/tagedit.py b/aqt/tagedit.py index 547e7c164..fe58819bb 100644 --- a/aqt/tagedit.py +++ b/aqt/tagedit.py @@ -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):