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