From 1f75ab89fa64f593b70beb19f90bfd09eddfb15e Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Fri, 22 Jan 2016 21:36:10 +0900 Subject: [PATCH] Installwizard: handle Escape key --- gui/qt/installwizard.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py index 341af53d7..b4a42a223 100644 --- a/gui/qt/installwizard.py +++ b/gui/qt/installwizard.py @@ -87,6 +87,7 @@ class InstallWizard(WindowModalDialog, WizardBase): self.please_wait.setAlignment(Qt.AlignCenter) self.icon_filename = None self.loop = QEventLoop() + self.rejected.connect(lambda: self.loop.exit(False)) self.cancel_button.clicked.connect(lambda: self.loop.exit(False)) self.next_button.clicked.connect(lambda: self.loop.exit(True)) outer_vbox = QVBoxLayout(self)