Installwizard: handle Escape key

This commit is contained in:
Neil Booth 2016-01-22 21:36:10 +09:00
parent 3ca0074301
commit 1f75ab89fa
1 changed files with 1 additions and 0 deletions

View File

@ -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)