URI: 
       tupdate_account_selector - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 7a1feb8e67aefaf9be8c427853cdbf685e6cf199
   DIR parent 741e2ee7a9befb19e3012b7443c87786b3016724
  HTML Author: thomasv <thomasv@gitorious>
       Date:   Thu, 10 Oct 2013 13:59:21 +0200
       
       update_account_selector
       
       Diffstat:
         M gui/qt/main_window.py               |      24 ++++++++++++------------
       
       1 file changed, 12 insertions(+), 12 deletions(-)
       ---
   DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
       t@@ -251,6 +251,17 @@ class ElectrumWindow(QMainWindow):
                return int(qtVersion[0]) >= 4 and int(qtVersion[2]) >= 7
            
        
       +    def update_account_selector(self):
       +        # account selector
       +        accounts = self.wallet.get_account_names()
       +        self.account_selector.clear()
       +        if len(accounts) > 1:
       +            self.account_selector.addItems([_("All accounts")] + accounts.values())
       +            self.account_selector.setCurrentIndex(0)
       +            self.account_selector.show()
       +        else:
       +            self.account_selector.hide()
       +
        
            def load_wallet(self, wallet):
                import electrum
       t@@ -265,19 +276,8 @@ class ElectrumWindow(QMainWindow):
                self.update_wallet()
                # Once GUI has been initialized check if we want to announce something since the callback has been called before the GUI was initialized
                self.notify_transactions()
       -
       -        # account selector
       -        accounts = self.wallet.get_account_names()
       -        self.account_selector.clear()
       -        if len(accounts) > 1:
       -            self.account_selector.addItems([_("All accounts")] + accounts.values())
       -            self.account_selector.setCurrentIndex(0)
       -            self.account_selector.show()
       -        else:
       -            self.account_selector.hide()
       -
       +        self.update_account_selector()
                self.new_account.setEnabled(self.wallet.seed_version>4)
       -
                self.update_lock_icon()
                self.update_buttons_on_seed()
                self.update_console()