1
0

Qt installwizard: raise UserCancelled if user clicks cancel (the wizard was hanging instead of terminating)

This commit is contained in:
ThomasV
2020-11-29 09:27:00 +01:00
parent 915e132c33
commit c46fbf08a5

View File

@@ -109,8 +109,10 @@ def wizard_dialog(func):
except GoBack: except GoBack:
if not wizard.can_go_back(): if not wizard.can_go_back():
wizard.close() wizard.close()
# to go back from the current dialog, we just let the caller unroll the stack: raise UserCancelled
raise else:
# to go back from the current dialog, we just let the caller unroll the stack:
raise
# next dialog # next dialog
try: try:
while True: while True: