URI: 
       tBreak out logic into a function - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 441b695815f2a3171141e2803ba21102706364fa
   DIR parent 3df8d11f1af37bccb0a01beb90264b2ff9b66054
  HTML Author: Neil Booth <kyuupichan@gmail.com>
       Date:   Thu, 31 Dec 2015 12:16:32 +0900
       
       Break out logic into a function
       
       Diffstat:
         M gui/qt/__init__.py                  |      11 +++++++----
       
       1 file changed, 7 insertions(+), 4 deletions(-)
       ---
   DIR diff --git a/gui/qt/__init__.py b/gui/qt/__init__.py
       t@@ -130,6 +130,12 @@ class ElectrumGui(MessageBoxMixin):
                for window in self.windows:
                    window.close()
        
       +    def remove_from_recently_open(self, filename):
       +        recent = self.config.get('recently_open', [])
       +        if filename in recent:
       +            recent.remove(filename)
       +            self.config.set_key('recently_open', recent)
       +
            def load_wallet_file(self, filename):
                try:
                    storage = WalletStorage(filename)
       t@@ -137,10 +143,7 @@ class ElectrumGui(MessageBoxMixin):
                    self.show_error(str(e))
                    return
                if not storage.file_exists:
       -            recent = self.config.get('recently_open', [])
       -            if filename in recent:
       -                recent.remove(filename)
       -                self.config.set_key('recently_open', recent)
       +            self.remove_from_recently_open(filename)
                    action = 'new'
                else:
                    try: