tfix #812 - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 3a8b4d42584f3c045bdfa52671e00bca4613f06a
DIR parent 5a20d07fb85b62ef2c7433cfceba7e0259da8dba
HTML Author: ThomasV <thomasv@gitorious>
Date: Tue, 2 Sep 2014 09:00:20 +0200
fix #812
Diffstat:
M plugins/btchipwallet.py | 38 ++++++++++++++++----------------
1 file changed, 19 insertions(+), 19 deletions(-)
---
DIR diff --git a/plugins/btchipwallet.py b/plugins/btchipwallet.py
t@@ -465,22 +465,22 @@ class DongleWaitingDialog(QThread):
if BTCHIP:
waitDialog = DongleWaitingDialog()
-# Tickle the UI a bit while waiting
-class DongleWaitQT(DongleWait):
- def __init__(self, dongle):
- self.dongle = dongle
-
- def waitFirstResponse(self, timeout):
- customTimeout = 0
- while customTimeout < timeout:
- try:
- response = self.dongle.waitFirstResponse(200)
- return response
- except USBError, e:
- if e.backend_error_code == -7:
- QApplication.processEvents()
- customTimeout = customTimeout + 100
- pass
- else:
- raise e
- raise e
+ # Tickle the UI a bit while waiting
+ class DongleWaitQT(DongleWait):
+ def __init__(self, dongle):
+ self.dongle = dongle
+
+ def waitFirstResponse(self, timeout):
+ customTimeout = 0
+ while customTimeout < timeout:
+ try:
+ response = self.dongle.waitFirstResponse(200)
+ return response
+ except USBError, e:
+ if e.backend_error_code == -7:
+ QApplication.processEvents()
+ customTimeout = customTimeout + 100
+ pass
+ else:
+ raise e
+ raise e