commit f9f59d8dffcd0b25eba87c6b0741e7eb4621e25a
parent 97e03cb73850664d948de068bd4dcb355c296a82
Author: thomasv <thomasv@gitorious>
Date: Sat, 2 Mar 2013 11:42:26 +0100
fix
Diffstat:
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/lib/gui_android.py b/lib/gui_android.py
@@ -101,8 +101,9 @@ def select_from_contacts():
def select_from_addresses():
droid.dialogCreateAlert("Addresses:")
l = []
- for i in range(len(wallet.addresses)):
- addr = wallet.addresses[i]
+ addresses = wallet.addresses()
+ for i in range(len(addresses)):
+ addr = addresses[i]
label = wallet.labels.get(addr,addr)
l.append( label )
droid.dialogSetItems(l)
@@ -111,7 +112,7 @@ def select_from_addresses():
result = response.result.get('item')
droid.dialogDismiss()
if result is not None:
- addr = wallet.addresses[result]
+ addr = addresses[result]
return addr
diff --git a/lib/gui_text.py b/lib/gui_text.py
@@ -106,7 +106,7 @@ class ElectrumGui:
self.print_list(messages, "%19s %25s "%("Address", "Label"))
def print_receive(self):
- messages = map(lambda addr: "%30s %30s "%(addr, self.wallet.labels.get(addr,"")), self.wallet.addresses)
+ messages = map(lambda addr: "%30s %30s "%(addr, self.wallet.labels.get(addr,"")), self.wallet.addresses())
self.print_list(messages, "%19s %25s "%("Address", "Label"))
def print_edit_line(self, y, label, text, index, size):