tload_wallet: don't hide and show gui unless we start the wizard - electrum - Electrum Bitcoin wallet
 (HTM) git clone https://git.parazyd.org/electrum
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
       ---
 (DIR) commit d895e5d132b601862d0d8580ea41de2d2f126206
 (DIR) parent 679f2fe2b1d3a4d59b89937969a7eb5e0ae6074b
 (HTM) Author: ThomasV <thomasv@gitorious>
       Date:   Sat, 22 Aug 2015 09:27:33 +0200
       
       load_wallet: don't hide and show gui unless we start the wizard
       
       Diffstat:
         M gui/qt/main_window.py               |      10 +++++-----
       
       1 file changed, 5 insertions(+), 5 deletions(-)
       ---
 (DIR) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
       t@@ -315,16 +315,16 @@ class ElectrumWindow(QMainWindow):
                    QMessageBox.warning(None, _('Warning'), str(e), _('OK'))
                    return
                action = wallet.get_action()
       -        self.hide()
                # run wizard
                if action is not None:
       +            self.hide()
                    wallet = self.gui_object.run_wizard(storage, action)
       +            # keep current wallet
       +            if not wallet:
       +                self.show()
       +                return
                else:
                    wallet.start_threads(self.network)
       -        # keep current wallet
       -        if not wallet:
       -            self.show()
       -            return
                # close current wallet
                self.close_wallet()
                # load new wallet in gui