1
0
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:
f4exb
2017-09-16 10:45:08 +02:00
parent 121fe4df60
commit 1d4cb21bb5
49 changed files with 90 additions and 82 deletions
+1 -11
View File
@@ -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)