Skip to content

Commit

Permalink
Merge pull request spesmilo#3 from wozz/trezor_plugin
Browse files Browse the repository at this point in the history
Remove extra variable that isn't needed
  • Loading branch information
m0mchil committed Aug 3, 2014
2 parents c3f0490 + d2c1ebf commit 3639585
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions plugins/trezor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from PyQt4.Qt import QMessageBox, QDialog, QVBoxLayout, QLabel, QThread, SIGNAL, QObject
from PyQt4.Qt import QMessageBox, QDialog, QVBoxLayout, QLabel, QThread, SIGNAL
from binascii import unhexlify
from struct import pack
from sys import stderr
Expand Down Expand Up @@ -28,8 +28,6 @@ def log(msg):
stderr.write("%s\n" % msg)
stderr.flush()

gl_emitter = QObject()

class Plugin(BasePlugin):

def fullname(self): return 'Trezor Wallet'
Expand Down Expand Up @@ -180,7 +178,7 @@ def sign_transaction(self, tx, keypairs, password):
except Exception, e:
raise e
finally:
gl_emitter.emit(SIGNAL('trezor_done'))
twd.emit(SIGNAL('trezor_done'))
values = [i['value'] for i in tx.inputs]
raw = signed_tx.encode('hex')
tx.update(raw)
Expand Down Expand Up @@ -365,7 +363,7 @@ def start(self, message):
self.d.show()
if not self.waiting:
self.waiting = True
self.d.connect(gl_emitter, SIGNAL('trezor_done'), self.stop)
self.d.connect(twd, SIGNAL('trezor_done'), self.stop)

def stop(self):
self.d.hide()
Expand Down

0 comments on commit 3639585

Please sign in to comment.