commit c46f219d252cf13810922c44305026f279480abb
parent 786f9ce7ff8eab6355e2908a597828205ab5489e
Author: ThomasV <thomasv@electrum.org>
Date: Fri, 10 Nov 2017 11:12:29 +0100
kivy: fix crash in show_private_key
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/gui/kivy/main_window.py b/gui/kivy/main_window.py
@@ -944,6 +944,8 @@ class ElectrumWindow(App):
def export_private_keys(self, pk_label, addr):
def show_private_key(addr, pk_label, password):
+ if self.wallet.has_password() and password is None:
+ 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))