Browse Source

Installwizard: handle Escape key

283
Neil Booth 9 years ago
parent
commit
1f75ab89fa
  1. 1
      gui/qt/installwizard.py

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

Loading…
Cancel
Save