mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-04 16:01:14 -05:00
DeviceUISet: fixed channel instance registrations element deletion. Fixes #776
This commit is contained in:
parent
202ba6d8da
commit
0966d48d3c
@ -132,6 +132,7 @@ void DeviceUISet::freeChannels()
|
|||||||
m_channelInstanceRegistrations[i].m_channelAPI->destroy();
|
m_channelInstanceRegistrations[i].m_channelAPI->destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_channelInstanceRegistrations.clear();
|
||||||
m_deviceSet->clearChannels();
|
m_deviceSet->clearChannels();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -144,6 +145,7 @@ void DeviceUISet::deleteChannel(int channelIndex)
|
|||||||
channelIndex);
|
channelIndex);
|
||||||
m_channelInstanceRegistrations[channelIndex].m_gui->destroy();
|
m_channelInstanceRegistrations[channelIndex].m_gui->destroy();
|
||||||
m_channelInstanceRegistrations[channelIndex].m_channelAPI->destroy();
|
m_channelInstanceRegistrations[channelIndex].m_channelAPI->destroy();
|
||||||
|
m_channelInstanceRegistrations.removeAt(channelIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_deviceSet->removeChannelInstanceAt(channelIndex);
|
m_deviceSet->removeChannelInstanceAt(channelIndex);
|
||||||
|
Loading…
Reference in New Issue
Block a user