URI: 
       tAdd a GUI messagebox when using a Trezor but can't connect to the device. - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 2afe4e30f777ea3d4194e4c9227916def0a432a9
   DIR parent 78469f488aedf449450ab660702580bd4cfd5481
  HTML Author: Maran <maran.hidskes@gmail.com>
       Date:   Wed, 20 Aug 2014 20:10:53 +0200
       
       Add a GUI messagebox when using a Trezor but can't connect to the device.
       
       Diffstat:
         M plugins/trezor.py                   |       4 +++-
       
       1 file changed, 3 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/plugins/trezor.py b/plugins/trezor.py
       t@@ -94,7 +94,7 @@ class TrezorWallet(NewWallet):
                NewWallet.__init__(self, storage)
        
                self.seed = 'trezor'
       -        
       +
                self.storage.put('gap_limit', 20, False)    #obey BIP44 gap limit of 20
        
                self.use_encryption = False
       t@@ -133,6 +133,8 @@ class TrezorWallet(NewWallet):
                        d = HidTransport.enumerate()[0]
                        self.transport = HidTransport(d)
                    except:
       +                d = QDialog()
       +                QMessageBox.warning(d, _('Warning'), _('Could not connect to your Trezor. Please verify the cable is connected and that no other app is using it.'), _('OK'))
                        raise Exception("Trezor not found")
                    self.client = QtGuiTrezorClient(self.transport)
                    self.client.set_tx_api(self)