tfix #3601 - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit c37608dd5e30e4aefbc9a10531352cc360ab3808 DIR parent 13bf539d175d7d97b9d55453892d380107a4fa8b HTML Author: SomberNight <somber.night@protonmail.com> Date: Mon, 25 Dec 2017 20:52:44 +0100 fix #3601 Diffstat: M gui/kivy/main_window.py | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) --- DIR diff --git a/gui/kivy/main_window.py b/gui/kivy/main_window.py t@@ -943,9 +943,14 @@ class ElectrumWindow(App): self._password_dialog.open() def export_private_keys(self, pk_label, addr): + if self.wallet.is_watching_only(): + self.show_info(_('This is a watching-only wallet. It does not contain private keys.')) + return def show_private_key(addr, pk_label, password): if self.wallet.has_password() and password is None: return + if not self.wallet.can_export(): + return key = str(self.wallet.export_private_key(addr, password)[0]) pk_label.data = key self.protected(_("Enter your PIN code in order to decrypt your private key"), show_private_key, (addr, pk_label))