kopia lustrzana https://github.com/f4exb/sdrangel
DeviceUISet: fixed channel instance registrations element deletion. Fixes #776
rodzic
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);
|
||||||
|
|
Ładowanie…
Reference in New Issue