mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 14:04:46 -04:00
Separate construction/destruction for the source input plugin core and the GUI
This commit is contained in:
@@ -212,7 +212,7 @@ void DeviceSourceAPI::renameChannelInstances()
|
||||
}
|
||||
}
|
||||
|
||||
void DeviceSourceAPI::freeAll()
|
||||
void DeviceSourceAPI::freeChannels()
|
||||
{
|
||||
// while(!m_channelInstanceRegistrations.isEmpty())
|
||||
// {
|
||||
@@ -225,16 +225,6 @@ void DeviceSourceAPI::freeAll()
|
||||
qDebug("DeviceSourceAPI::freeAll: destroying channel [%s]", qPrintable(m_channelInstanceRegistrations[i].m_channelName));
|
||||
m_channelInstanceRegistrations[i].m_gui->destroy();
|
||||
}
|
||||
|
||||
|
||||
if(m_sampleSourcePluginInstanceUI != 0)
|
||||
{
|
||||
qDebug("DeviceSourceAPI::freeAll: destroying m_sampleSourcePluginGUI");
|
||||
m_deviceSourceEngine->setSource(0);
|
||||
m_sampleSourcePluginInstanceUI->destroy();
|
||||
m_sampleSourcePluginInstanceUI = 0;
|
||||
m_sampleSourceId.clear();
|
||||
}
|
||||
}
|
||||
|
||||
void DeviceSourceAPI::loadSourceSettings(const Preset* preset)
|
||||
|
||||
Reference in New Issue
Block a user