tfix: connection preferences were overwritten by wizard - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit f643c3b44abd6ddddb6a619b286a2e6609ee306c DIR parent f4abbd7981c2309525a0cb6a0ce9cd620f141cd9 HTML Author: ThomasV <thomasv@gitorious> Date: Wed, 27 Aug 2014 14:01:05 +0200 fix: connection preferences were overwritten by wizard Diffstat: M gui/qt/installwizard.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) --- DIR diff --git a/gui/qt/installwizard.py b/gui/qt/installwizard.py t@@ -252,6 +252,9 @@ class InstallWizard(QDialog): def network_dialog(self): + # skip this if config already exists + if self.config.get('server') is not None: + return grid = QGridLayout() grid.setSpacing(5) t@@ -289,15 +292,10 @@ class InstallWizard(QDialog): if b2.isChecked(): return NetworkDialog(self.network, self.config, None).do_exec() - - elif b1.isChecked(): + else: self.config.set_key('auto_cycle', True, True) return - else: - self.config.set_key("server", None, True) - self.config.set_key('auto_cycle', False, True) - return def show_message(self, msg, icon=None):