mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-08 01:26:01 -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.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);
|
||||
|
Loading…
Reference in New Issue
Block a user