From 7e4f37184124be483b3d6846aadfb24da7e758a1 Mon Sep 17 00:00:00 2001 From: glubsy Date: Thu, 30 Jul 2020 15:30:09 +0200 Subject: [PATCH] Avoid crash when quitting * If details dialog failed to be created for some reason, avoid crashing by dereferencing a null pointer --- qt/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qt/app.py b/qt/app.py index 97cbce8f..8d3d7404 100644 --- a/qt/app.py +++ b/qt/app.py @@ -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):