1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2025-03-10 05:34:36 +00:00

Avoid crash when quitting

* If details dialog failed to be created for some reason, avoid crashing by dereferencing a null pointer
This commit is contained in:
glubsy 2020-07-30 15:30:09 +02:00
parent 9b8637ffc8
commit 7e4f371841

View File

@ -248,6 +248,7 @@ class DupeGuru(QObject):
preferences_dialog.setParent(None)
def quitTriggered(self):
if self.details_dialog is not None:
self.details_dialog.close()
self.directories_dialog.close()