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: