From b01792c3d271cab36819864ca0b28d81eaa20f05 Mon Sep 17 00:00:00 2001 From: Jakob Ketterl Date: Wed, 24 Mar 2021 17:25:59 +0100 Subject: [PATCH] fix deletion of sdrs when there's no changes --- owrx/controllers/settings/sdr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/owrx/controllers/settings/sdr.py b/owrx/controllers/settings/sdr.py index 0243850..a655a6d 100644 --- a/owrx/controllers/settings/sdr.py +++ b/owrx/controllers/settings/sdr.py @@ -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()))