mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
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
1 changed files with 2 additions and 0 deletions
|
@ -79,6 +79,8 @@ class TagEdit(QLineEdit):
|
||||||
self.completer.popup().hide()
|
self.completer.popup().hide()
|
||||||
|
|
||||||
def hideCompleter(self):
|
def hideCompleter(self):
|
||||||
|
if sip.isdeleted(self.completer):
|
||||||
|
return
|
||||||
self.completer.popup().hide()
|
self.completer.popup().hide()
|
||||||
|
|
||||||
class TagCompleter(QCompleter):
|
class TagCompleter(QCompleter):
|
||||||
|
|
Loading…
Reference in a new issue