diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index 7617167d4..c2cfb06eb 100644 --- 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)