URI: 
       tstore gui last wallet separately, to fix command line - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 77d010bcecca7e12b574be4f119a67724b984bf2
   DIR parent 46c290e30deab3726321bc224724cb87fc27d8ec
  HTML Author: ThomasV <thomasv@gitorious>
       Date:   Fri, 27 Feb 2015 10:37:13 +0100
       
       store gui last wallet separately, to fix command line
       
       Diffstat:
         M electrum                            |       2 +-
         M gui/qt/__init__.py                  |       3 +++
         M gui/qt/main_window.py               |       2 +-
       
       3 files changed, 5 insertions(+), 2 deletions(-)
       ---
   DIR diff --git a/electrum b/electrum
       t@@ -109,7 +109,7 @@ def arg_parser():
            parser = optparse.OptionParser(usage=usage, add_help_option=False)
            parser.add_option("-h", "--help", action="callback", callback=print_help_cb, help="show this help text")
            parser.add_option("-g", "--gui", dest="gui", help="User interface: qt, lite, gtk, text or stdio")
       -    parser.add_option("-w", "--wallet", dest="wallet_path", help="wallet path (default: electrum.dat)")
       +    parser.add_option("-w", "--wallet", dest="wallet_path", help="wallet path")
            parser.add_option("-o", "--offline", action="store_true", dest="offline", default=False, help="remain offline")
            parser.add_option("-d", "--daemon", action="store_true", dest="daemon", default=False, help="use daemon")
            parser.add_option("-C", "--concealed", action="store_true", dest="concealed", default=False, help="don't echo seed to console when restoring")
   DIR diff --git a/gui/qt/__init__.py b/gui/qt/__init__.py
       t@@ -149,6 +149,9 @@ class ElectrumGui:
        
            def main(self, url):
        
       +        if self.config.get('wallet_path') is None and self.config.get('gui_last_wallet'):
       +            self.config.read_only_options['wallet_path'] = self.config.get('gui_last_wallet')
       +
                storage = WalletStorage(self.config)
                if storage.file_exists:
                    try:
   DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
       t@@ -298,7 +298,7 @@ class ElectrumWindow(QMainWindow):
                self.load_wallet(wallet)
                self.show()
                # save path
       -        self.config.set_key('default_wallet_path', filename)
       +        self.config.set_key('gui_last_wallet', filename)