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:
parent
9b8637ffc8
commit
7e4f371841
@ -248,6 +248,7 @@ class DupeGuru(QObject):
|
|||||||
preferences_dialog.setParent(None)
|
preferences_dialog.setParent(None)
|
||||||
|
|
||||||
def quitTriggered(self):
|
def quitTriggered(self):
|
||||||
|
if self.details_dialog is not None:
|
||||||
self.details_dialog.close()
|
self.details_dialog.close()
|
||||||
self.directories_dialog.close()
|
self.directories_dialog.close()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user