Merge branch 'master' of github.com:spesmilo/electrum

This commit is contained in:
thomasv 2012-12-17 16:21:53 +01:00
commit 6b7ad42ec5
1 changed files with 8 additions and 4 deletions

View File

@ -44,10 +44,14 @@ class ReceivingWidget(QTreeWidget):
# It appears that at this moment history can either be an array with tx and block height
# Or just a tx that's why this ugly code duplication is in, will fix
if len(history) == 1:
for tx_hash in history:
tx = self.owner.actuator.wallet.transactions.get(tx_hash)
if tx:
used = "Yes"
# This means pruned data. If that's the case the address has to been used at one point
if history[0] == "*":
used = "Yes"
else:
for tx_hash in history:
tx = self.owner.actuator.wallet.transactions.get(tx_hash)
if tx:
used = "Yes"
else:
for tx_hash, height in history:
tx = self.owner.actuator.wallet.transactions.get(tx_hash)