From 0966d48d3c11a01f2792f65f4b563828bc276e43 Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 17 Feb 2021 13:45:34 +0100 Subject: [PATCH] DeviceUISet: fixed channel instance registrations element deletion. Fixes #776 --- sdrgui/device/deviceuiset.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdrgui/device/deviceuiset.cpp b/sdrgui/device/deviceuiset.cpp index 4a402af14..e58d80492 100644 --- a/sdrgui/device/deviceuiset.cpp +++ b/sdrgui/device/deviceuiset.cpp @@ -132,6 +132,7 @@ void DeviceUISet::freeChannels() m_channelInstanceRegistrations[i].m_channelAPI->destroy(); } + m_channelInstanceRegistrations.clear(); m_deviceSet->clearChannels(); } @@ -144,6 +145,7 @@ void DeviceUISet::deleteChannel(int channelIndex) channelIndex); m_channelInstanceRegistrations[channelIndex].m_gui->destroy(); m_channelInstanceRegistrations[channelIndex].m_channelAPI->destroy(); + m_channelInstanceRegistrations.removeAt(channelIndex); } m_deviceSet->removeChannelInstanceAt(channelIndex);