X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=gui%2Fqt%2Finstallwizard.py;h=f3b30a42c6421d0d77dc5550bb18342cfcbf3f99;hb=3cbe11a42473af52e7c5e002c36aaaf32646f627;hp=5e035669daba3f721b41bb410fe2b8d697a96e9d;hpb=c329a03757556c021411c9d6e9b5cfb1e8628a2f;p=electrum-nvc.git diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py index 5e03566..f3b30a4 100644 --- a/gui/qt/installwizard.py +++ b/gui/qt/installwizard.py @@ -2,10 +2,10 @@ from PyQt4.QtGui import * from PyQt4.QtCore import * import PyQt4.QtCore as QtCore -from electrum.i18n import _ -from electrum import Wallet, Wallet_2of2, Wallet_2of3 -from electrum import bitcoin -from electrum import util +from electrum_nvc.i18n import _ +from electrum_nvc import Wallet, Wallet_2of2, Wallet_2of3 +from electrum_nvc import bitcoin +from electrum_nvc import util import seed_dialog from network_dialog import NetworkDialog @@ -14,10 +14,10 @@ from amountedit import AmountEdit import sys import threading -from electrum.plugins import run_hook +from electrum_nvc.plugins import run_hook -MSG_ENTER_ANYTHING = _("Please enter a wallet seed, a master public key, a list of Bitcoin addresses, or a list of private keys") +MSG_ENTER_ANYTHING = _("Please enter a wallet seed, a master public key, a list of Novacoin addresses, or a list of private keys") MSG_SHOW_MPK = _("This is your master public key") MSG_ENTER_MPK = _("Please enter your master public key") MSG_ENTER_COLD_MPK = _("Please enter the master public key of your cosigner wallet") @@ -545,7 +545,9 @@ class InstallWizard(QDialog): wallet.create_accounts(password) else: - wallet = run_hook('installwizard_restore', self, self.storage) + wallet = run_hook('installwizard_restore', self, self.storage) + if not wallet: + return # create first keys offline self.waiting_dialog(wallet.synchronize)