Browse Source
Merge pull request #3209 from SomberNight/multiple_privkeys_export
fix: exporting privkeys multiple times
3.0.x
ThomasV
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
gui/qt/main_window.py
|
|
@ -2183,12 +2183,14 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError): |
|
|
|
privkey = self.wallet.export_private_key(addr, password)[0] |
|
|
|
private_keys[addr] = privkey |
|
|
|
self.computing_privkeys_signal.emit() |
|
|
|
self.computing_privkeys_signal.disconnect() |
|
|
|
self.show_privkeys_signal.emit() |
|
|
|
|
|
|
|
def show_privkeys(): |
|
|
|
s = "\n".join( map( lambda x: x[0] + "\t"+ x[1], private_keys.items())) |
|
|
|
e.setText(s) |
|
|
|
b.setEnabled(True) |
|
|
|
self.show_privkeys_signal.disconnect() |
|
|
|
|
|
|
|
self.computing_privkeys_signal.connect(lambda: e.setText("Please wait... %d/%d"%(len(private_keys),len(addresses)))) |
|
|
|
self.show_privkeys_signal.connect(show_privkeys) |
|
|
|