fix: show_private_key
This commit is contained in:
parent
620f9f68d4
commit
323aafa34d
|
@ -1601,11 +1601,11 @@ class ElectrumWindow(QMainWindow):
|
||||||
def show_private_key(self, address, password):
|
def show_private_key(self, address, password):
|
||||||
if not address: return
|
if not address: return
|
||||||
try:
|
try:
|
||||||
pk = self.wallet.get_private_key(address, password)
|
pk_list = self.wallet.get_private_key(address, password)
|
||||||
except BaseException, e:
|
except BaseException, e:
|
||||||
self.show_message(str(e))
|
self.show_message(str(e))
|
||||||
return
|
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
|
@protected
|
||||||
|
|
Loading…
Reference in New Issue