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
1 changed files with 2 additions and 1 deletions

View File

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