disable 'new account' in old wallets

This commit is contained in:
thomasv 2013-09-03 09:52:55 +02:00
parent 7204dceeac
commit a417816e69
2 changed files with 4 additions and 3 deletions

View File

@ -325,6 +325,8 @@ class ElectrumWindow(QMainWindow):
else:
self.account_selector.hide()
self.new_account.setEnabled(self.wallet.seed_version>4)
self.update_lock_icon()
self.update_buttons_on_seed()
self.update_console()
@ -426,8 +428,8 @@ class ElectrumWindow(QMainWindow):
new_contact = wallet_menu.addAction(_("&New contact"))
new_contact.triggered.connect(self.new_contact_dialog)
new_account = wallet_menu.addAction(_("&New account"))
new_account.triggered.connect(self.new_account_dialog)
self.new_account = wallet_menu.addAction(_("&New account"))
self.new_account.triggered.connect(self.new_account_dialog)
import_menu = menubar.addMenu(_("&Import"))
in_labels = import_menu.addAction(_("&Labels"))

View File

@ -370,7 +370,6 @@ class Wallet:
def create_old_account(self):
print self.seed
mpk = OldAccount.mpk_from_seed(self.seed)
self.storage.put('master_public_key', mpk, True)
self.accounts[0] = OldAccount({'mpk':mpk, 0:[], 1:[]})