From dee4b0430e250c5df3be3180df153160632fa08d Mon Sep 17 00:00:00 2001 From: Ferdi Franceschini Date: Tue, 8 Jul 2014 18:36:15 +1000 Subject: [PATCH] The order that __get_options() and __get_implementations() are called in shouldn't matter. --- site_ansto/instrument/util/config_edit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site_ansto/instrument/util/config_edit.py b/site_ansto/instrument/util/config_edit.py index 98f5b96d..0ab6a1fe 100755 --- a/site_ansto/instrument/util/config_edit.py +++ b/site_ansto/instrument/util/config_edit.py @@ -269,7 +269,7 @@ class InstConfigData(object): self.opt_dict[sect]['permanent'] = permanent self.opt_dict[sect]['imptype'] = imptype if stateval == True: - if selected_imp == 'none' or (selected_imp in self.imp2opt_dict): + if selected_imp == 'none' or (selected_imp in self.imp2opt_dict) and self.imp2opt_dict[selected_imp] != 'none': self.opt_dict[sect]['enabled'] = False self.opt_dict[sect]['selected_imp'] = 'none' else: