tfix for empty addressbook - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 3350229263648226cde61ebc3925190861f06b4f DIR parent 1cba96cbbb3a012038867d041007488912d41233 HTML Author: ThomasV <thomasv@gitorious> Date: Fri, 26 Jul 2013 05:08:08 +0200 fix for empty addressbook Diffstat: M gui/gui_text.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/gui/gui_text.py b/gui/gui_text.py t@@ -208,7 +208,7 @@ class ElectrumGui: out = self.run_popup('Address', ["Edit label", "Freeze", "Prioritize"]) def run_contacts_tab(self, c): - if c == 10: + if c == 10 and self.wallet.addressbook: out = self.run_popup('Adress', ["Copy", "Pay to", "Edit label", "Delete"]).get('button') address = self.wallet.addressbook[self.pos%len(self.wallet.addressbook)] if out == "Pay to":