fix device deletion

This commit is contained in:
Jakob Ketterl 2021-03-20 02:16:08 +01:00
parent cfeab98620
commit 3b9763eee5

View File

@ -20,6 +20,7 @@ class MappedSdrSources(PropertyDelegator):
def handleSdrDeviceChange(self, changes): def handleSdrDeviceChange(self, changes):
for key, value in changes.items(): for key, value in changes.items():
if value is PropertyDeleted: if value is PropertyDeleted:
if key in self:
del self[key] del self[key]
else: else:
self._addSource(key, value) self._addSource(key, value)