1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -04:00

Multi device support: sort of works but plugin manager is not fixed

This commit is contained in:
f4exb
2016-05-16 21:51:53 +02:00
parent 00864bfb6c
commit 3f2b3cdea3
2 changed files with 22 additions and 18 deletions
+16 -11
View File
@@ -188,21 +188,26 @@ void DeviceAPI::renameChannelInstances()
void DeviceAPI::freeAll()
{
m_deviceEngine->stopAcquistion();
// while(!m_channelInstanceRegistrations.isEmpty())
// {
// ChannelInstanceRegistration reg(m_channelInstanceRegistrations.takeLast());
// reg.m_gui->destroy();
// }
while(!m_channelInstanceRegistrations.isEmpty())
for(int i = 0; i < m_channelInstanceRegistrations.count(); i++)
{
ChannelInstanceRegistration reg(m_channelInstanceRegistrations.takeLast());
reg.m_gui->destroy();
qDebug("PluginManager::loadSettings: destroying channel [%s]", qPrintable(m_channelInstanceRegistrations[i].m_channelName));
m_channelInstanceRegistrations[i].m_gui->destroy();
}
if(m_sampleSourcePluginGUI != 0)
{
m_deviceEngine->setSource(0);
m_sampleSourcePluginGUI->destroy();
m_sampleSourcePluginGUI = 0;
m_sampleSourceId.clear();
}
// if(m_sampleSourcePluginGUI != 0)
// {
// m_deviceEngine->setSource(0);
// m_sampleSourcePluginGUI->destroy();
// m_sampleSourcePluginGUI = 0;
// m_sampleSourceId.clear();
// }
}
void DeviceAPI::loadSourceSettings(const Preset* preset)