From 2fb738be594c38ed33de97f53e477c6d3d230d42 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 17 Dec 2013 07:10:40 +0100 Subject: [PATCH] fix: return None if user presses cancel --- gui/qt/installwizard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py index 722b969a..3d320c97 100644 --- a/gui/qt/installwizard.py +++ b/gui/qt/installwizard.py @@ -178,7 +178,8 @@ class InstallWizard(QDialog): vbox.addLayout(ok_cancel_buttons(self, _('Next'))) self.set_layout(vbox) - if not self.exec_(): return None, None + if not self.exec_(): + return None mpk = str(mpk_e.toPlainText()).strip() chain = str(chain_e.toPlainText()).strip()