1
0

query_info: raise if user cancelled

This commit is contained in:
ThomasV
2016-08-26 12:26:43 +02:00
parent 4189d9343d
commit f7efedf8a0
2 changed files with 6 additions and 2 deletions

View File

@@ -1288,7 +1288,8 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
vbox = QVBoxLayout(dialog)
vbox.addLayout(clayout.layout())
vbox.addLayout(Buttons(OkButton(dialog)))
dialog.exec_()
if not dialog.exec_():
return None
return clayout.selected_index()
def lock_amount(self, b):