fix deletion of sdrs when there's no changes

This commit is contained in:
Jakob Ketterl 2021-03-24 17:25:59 +01:00
parent 5f7daba3b2
commit b01792c3d2

View File

@ -255,6 +255,8 @@ class SdrDeviceController(SdrFormControllerWithModal):
config = Config.get()
sdrs = config["sdrs"]
del sdrs[self.device_id]
# need to overwrite the existing key in the config since the layering won't capture the changes otherwise
config["sdrs"] = sdrs
config.store()
return self.send_redirect("{}settings/sdr".format(self.get_document_root()))