Browse Source

minor fixes for wallet creation

283
thomasv 12 years ago
parent
commit
620f9f68d4
  1. 2
      gui/gui_classic.py
  2. 9
      gui/installwizard.py
  3. 5
      gui/password_dialog.py
  4. 2
      lib/wallet.py

2
gui/gui_classic.py

@ -2273,7 +2273,7 @@ class ElectrumGui:
storage = WalletStorage(self.config) storage = WalletStorage(self.config)
if not storage.file_exists: if not storage.file_exists:
import installwizard import installwizard
wizard = installwizard.InstallWizard(self.config, self.interface, self.blockchain, storage) wizard = installwizard.InstallWizard(self.config, self.network, storage)
wallet = wizard.run() wallet = wizard.run()
if not wallet: if not wallet:
exit() exit()

9
gui/installwizard.py

@ -14,11 +14,12 @@ import sys
class InstallWizard(QDialog): class InstallWizard(QDialog):
def __init__(self, config, interface, blockchain, storage): def __init__(self, config, network, storage):
QDialog.__init__(self) QDialog.__init__(self)
self.config = config self.config = config
self.interface = interface self.network = network
self.blockchain = blockchain self.interface = network.interface
self.blockchain = network.blockchain
self.storage = storage self.storage = storage
@ -330,7 +331,7 @@ class InstallWizard(QDialog):
self.network_dialog() self.network_dialog()
# start wallet threads # start wallet threads
wallet.start_threads(self.interface, self.blockchain) wallet.start_threads(self.network)
if action == 'restore': if action == 'restore':
try: try:

5
gui/password_dialog.py

@ -94,7 +94,10 @@ class PasswordDialog(QDialog):
QMessageBox.warning(self.parent, _('Error'), _('Failed to update password'), _('OK')) QMessageBox.warning(self.parent, _('Error'), _('Failed to update password'), _('OK'))
return return
QMessageBox.information(self.parent, _('Success'), _('Password was updated successfully'), _('OK')) if new_password:
QMessageBox.information(self.parent, _('Success'), _('Password was updated successfully'), _('OK'))
else:
QMessageBox.information(self.parent, _('Success'), _('This wallet is not encrypted'), _('OK'))

2
lib/wallet.py

@ -391,7 +391,7 @@ class Wallet:
def set_label(self, key, value): def set_label(self, key, value):
self.labels[account_id] = name self.labels[key] = value
self.storage.put('labels', self.labels, True) self.storage.put('labels', self.labels, True)

Loading…
Cancel
Save