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,7 +20,8 @@ class MappedSdrSources(PropertyDelegator):
def handleSdrDeviceChange(self, changes):
for key, value in changes.items():
if value is PropertyDeleted:
del self[key]
if key in self:
del self[key]
else:
self._addSource(key, value)