sleep inside for loop, so that gui remains responsive
authorThomasV <thomasv@gitorious>
Mon, 5 May 2014 07:20:19 +0000 (09:20 +0200)
committerThomasV <thomasv@gitorious>
Mon, 5 May 2014 07:20:19 +0000 (09:20 +0200)
gui/qt/main_window.py

index e233b0b..a59920f 100644 (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'))