wizard restore: abort if wallet is None
authorThomasV <thomasv@gitorious>
Sat, 12 Jul 2014 17:41:57 +0000 (19:41 +0200)
committerThomasV <thomasv@gitorious>
Sat, 12 Jul 2014 17:41:57 +0000 (19:41 +0200)
gui/qt/installwizard.py

index 06f7190..2b074f8 100644 (file)
@@ -546,6 +546,8 @@ class InstallWizard(QDialog):
 
             else:
                 wallet = run_hook('installwizard_restore', self, self.storage)
+                if not wallet:
+                    return
 
             # create first keys offline
             self.waiting_dialog(wallet.synchronize)