From 2c1bf7ca9506fe99c69c4e32a18e0174410127c6 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 21 Aug 2014 10:27:30 +0200 Subject: [PATCH] wizard: change order --- gui/qt/installwizard.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py index c7c961fe..67d7a14f 100644 --- a/gui/qt/installwizard.py +++ b/gui/qt/installwizard.py @@ -470,12 +470,7 @@ class InstallWizard(QDialog): text = self.enter_seed_dialog(MSG_ENTER_ANYTHING, None) if not text: return - if Wallet.is_seed(text): - password = self.password_dialog() - wallet = Wallet.from_seed(text, self.storage) - wallet.add_seed(text, password) - wallet.create_main_account(password) - elif Wallet.is_xprv(text): + if Wallet.is_xprv(text): password = self.password_dialog() wallet = Wallet.from_xprv(text, password, self.storage) elif Wallet.is_old_mpk(text): @@ -486,6 +481,11 @@ class InstallWizard(QDialog): wallet = Wallet.from_address(text, self.storage) elif Wallet.is_private_key(text): wallet = Wallet.from_private_key(text, self.storage) + elif Wallet.is_seed(text): + password = self.password_dialog() + wallet = Wallet.from_seed(text, self.storage) + wallet.add_seed(text, password) + wallet.create_main_account(password) else: raise BaseException('unknown wallet type')