From b23f788b4a40bda63dae0fed8e3bb390c4a547fb Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 29 Mar 2017 10:07:42 +0200 Subject: [PATCH] fix #2342 --- gui/qt/installwizard.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py index fcc22869..6288163f 100644 --- a/gui/qt/installwizard.py +++ b/gui/qt/installwizard.py @@ -485,17 +485,13 @@ class InstallWizard(QDialog, MessageBoxMixin, BaseWizard): self.back_button.setText(_('Cancel')) self.exec_layout(clayout.layout(), title) r = clayout.selected_index() - if r == 0: - auto_connect = True - elif r == 1: - auto_connect = True + if r == 1: nlayout = NetworkChoiceLayout(network, self.config, wizard=True) if self.exec_layout(nlayout.layout()): - auto_connect = False + nlayout.accept() else: - auto_connect = True - network.auto_connect = auto_connect - self.config.set_key('auto_connect', auto_connect, True) + network.auto_connect = True + self.config.set_key('auto_connect', True, True) @wizard_dialog def multisig_dialog(self, run_next):