sleep inside for loop, so that gui remains responsive

This commit is contained in:
ThomasV 2014-05-05 09:20:19 +02:00
parent 8534ec603f
commit 35200557e4
1 changed files with 1 additions and 1 deletions

View File

@ -1906,8 +1906,8 @@ class ElectrumWindow(QMainWindow):
private_keys = {}
addresses = self.wallet.addresses(True)
def privkeys_thread():
time.sleep(0.1)
for addr in addresses:
time.sleep(0.1)
private_keys[addr] = "\n".join(self.wallet.get_private_key(addr, password))
d.emit(SIGNAL('computing_privkeys'))
d.emit(SIGNAL('show_privkeys'))