From: thomasv Date: Fri, 8 Nov 2013 10:17:40 +0000 (+0100) Subject: don't show actinos that require private key if the wallet has no seed X-Git-Url: https://git.novaco.in/?a=commitdiff_plain;h=6458c0f591193ef26e9ef765129aed8081c806b5;p=electrum-nvc.git don't show actinos that require private key if the wallet has no seed --- diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index aefa8df..e3c6c1e 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -1124,8 +1124,9 @@ class ElectrumWindow(QMainWindow): menu.addAction(_("Copy to clipboard"), lambda: self.app.clipboard().setText(addr)) menu.addAction(_("QR code"), lambda: self.show_qrcode("bitcoin:" + addr, _("Address")) ) menu.addAction(_("Edit label"), lambda: self.edit_label(True)) - menu.addAction(_("Private key"), lambda: self.show_private_key(addr)) - menu.addAction(_("Sign message"), lambda: self.sign_message(addr)) + if self.wallet.seed: + menu.addAction(_("Private key"), lambda: self.show_private_key(addr)) + menu.addAction(_("Sign message"), lambda: self.sign_message(addr)) if addr in self.wallet.imported_keys: menu.addAction(_("Remove from wallet"), lambda: self.delete_imported_key(addr))