1
0

Trezor: small improvements for device initialization

This commit is contained in:
Neil Booth
2016-01-22 19:48:04 +09:00
parent 3cd088b2e6
commit 1e030706cb
3 changed files with 16 additions and 7 deletions

View File

@@ -112,8 +112,7 @@ class QtHandler(PrintError):
text.returnPressed.connect(dialog.accept)
hbox.addWidget(text)
hbox.addStretch(1)
if not dialog.exec_():
return None
dialog.exec_() # Firmware cannot handle cancellation
self.word = unicode(text.text())
self.done.set()