1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 17:28:50 -05:00

DeviceUISet: fixed channel instance registrations element deletion. Fixes #776

This commit is contained in:
f4exb 2021-02-17 13:45:34 +01:00
parent 202ba6d8da
commit 0966d48d3c

View File

@ -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);