From 323aafa34d49ad943d493b50eef62f606b859809 Mon Sep 17 00:00:00 2001 From: thomasv Date: Tue, 10 Sep 2013 16:07:59 +0200 Subject: [PATCH] fix: show_private_key --- gui/gui_classic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/gui_classic.py b/gui/gui_classic.py index 1bebc903..15318e81 100644 --- a/gui/gui_classic.py +++ b/gui/gui_classic.py @@ -1601,11 +1601,11 @@ class ElectrumWindow(QMainWindow): def show_private_key(self, address, password): if not address: return try: - pk = self.wallet.get_private_key(address, password) + pk_list = self.wallet.get_private_key(address, password) except BaseException, e: self.show_message(str(e)) return - QMessageBox.information(self, _('Private key'), 'Address'+ ': ' + address + '\n\n' + _('Private key') + ': ' + pk, _('OK')) + QMessageBox.information(self, _('Private key'), 'Address'+ ': ' + address + '\n\n' + _('Private key') + ': ' + '\n'.join(pk_list), _('OK')) @protected