commit 1ef6926ca77ea252193d6c556df2a70f33546f04
parent 3083b8dd8aee4bb23e68f93e1fe77cb4b410cbd8
Author: ThomasV <thomasv@electrum.org>
Date: Fri, 3 Nov 2017 20:05:45 +0100
Merge pull request #3209 from SomberNight/multiple_privkeys_export
fix: exporting privkeys multiple times
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/gui/qt/main_window.py b/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)