tQt installwizard: raise UserCancelled if user clicks cancel (the wizard was hanging instead of terminating) - electrum - Electrum Bitcoin wallet
 (HTM) git clone https://git.parazyd.org/electrum
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
       ---
 (DIR) commit c46fbf08a525988f1a2f175906e00f084426c4ab
 (DIR) parent 915e132c335f8a4c70538088d7c6ce602de0f054
 (HTM) Author: ThomasV <thomasv@electrum.org>
       Date:   Sun, 29 Nov 2020 09:27:00 +0100
       
       Qt installwizard: raise UserCancelled if user clicks cancel (the wizard was hanging instead of terminating)
       
       Diffstat:
         M electrum/gui/qt/installwizard.py    |       6 ++++--
       
       1 file changed, 4 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/electrum/gui/qt/installwizard.py b/electrum/gui/qt/installwizard.py
       t@@ -109,8 +109,10 @@ def wizard_dialog(func):
                    except GoBack:
                        if not wizard.can_go_back():
                            wizard.close()
       -                # to go back from the current dialog, we just let the caller unroll the stack:
       -                raise
       +                    raise UserCancelled
       +                else:
       +                    # to go back from the current dialog, we just let the caller unroll the stack:
       +                    raise
                    # next dialog
                    try:
                        while True: