URI: 
       tkivy: fix update_contacts - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit ac4adbb298ee9b0782e481af75367f1a8b2b5e85
   DIR parent 897a5d34ed6c2528df6c6d057276c08f3ff62fc3
  HTML Author: ThomasV <thomasv@electrum.org>
       Date:   Thu,  3 Sep 2015 16:53:11 +0200
       
       kivy: fix update_contacts
       
       Diffstat:
         M gui/kivy/main_window.py             |       8 +++++++-
       
       1 file changed, 7 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/gui/kivy/main_window.py b/gui/kivy/main_window.py
       t@@ -3,6 +3,7 @@ import datetime
        
        from electrum import WalletStorage, Wallet
        from electrum.i18n import _, set_language
       +from electrum.contacts import Contacts
        
        from kivy.config import Config
        Config.set('modules', 'screen', 'droid2')
       t@@ -186,6 +187,9 @@ class ElectrumWindow(App):
                self.electrum_config = config = kwargs.get('config', None)
                self.gui_object = kwargs.get('gui_object', None)
        
       +        self.config = self.gui_object.config
       +        self.contacts = Contacts(self.config)
       +
                self.bind(url=self.set_url)
                # were we sent a url?
                url = kwargs.get('url', None)
       t@@ -743,7 +747,9 @@ class ElectrumWindow(App):
        
                child = -1
                children = contact_list.children
       -        for address in self.wallet.addressbook:
       +
       +        for key in sorted(self.contacts.keys()):
       +            _type, address = self.contacts[key]
                    label = self.wallet.labels.get(address, '')
                    child += 1
                    try: