create default label only if the output is not mine

This commit is contained in:
ThomasV 2012-06-10 11:37:11 +02:00
parent 952da14be4
commit 3fedcc8824
1 changed files with 1 additions and 1 deletions

View File

@ -835,7 +835,7 @@ class Wallet:
default_label = ''
if tx['value']<0:
for o_addr in tx['outputs']:
if not self.is_change(o_addr):
if not self.is_mine(o_addr):
dest_label = self.labels.get(o_addr)
if dest_label:
default_label = 'to: ' + dest_label