Fix error when closing Find Duplicates screen early (#2669)

This commit is contained in:
Abdo 2023-09-20 09:03:46 +03:00 committed by GitHub
parent fe3d587f48
commit 9b8dfd2860
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,6 +79,8 @@ class FindDuplicatesDialog(QDialog):
self.show()
def show_duplicates_report(self, dupes: list[tuple[str, list[NoteId]]]) -> None:
if sip.isdeleted(self):
return
self._dupes = dupes
if not self._dupesButton:
self._dupesButton = b = self.form.buttonBox.addButton(