1
0

move private key methods from wallet to accounts

This commit is contained in:
ThomasV
2014-05-04 19:43:15 +02:00
parent 9b8ad42a66
commit c9fc6275ab
5 changed files with 170 additions and 143 deletions

View File

@@ -1077,7 +1077,7 @@ class ElectrumWindow(QMainWindow):
menu.addAction(_("Private key"), lambda: self.show_private_key(addr))
menu.addAction(_("Sign/verify message"), lambda: self.sign_verify_message(addr))
#menu.addAction(_("Encrypt/decrypt message"), lambda: self.encrypt_message(addr))
if addr in self.wallet.imported_keys:
if self.wallet.is_imported(addr):
menu.addAction(_("Remove from wallet"), lambda: self.delete_imported_key(addr))
if any(addr not in self.wallet.frozen_addresses for addr in addrs):

View File

@@ -124,6 +124,8 @@ class PasswordDialog(QDialog):
try:
self.wallet.update_password(password, new_password)
except:
import traceback, sys
traceback.print_exc(file=sys.stdout)
QMessageBox.warning(self.parent, _('Error'), _('Failed to update password'), _('OK'))
return