mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-22 03:19:25 -04:00
Server: fix possible core dump in MainCore::changeSampleSource by removing the saving and loading of device settings on the working preset
This commit is contained in:
parent
92235a2e41
commit
61d4de4601
@ -344,7 +344,6 @@ void MainCore::changeSampleSource(int deviceSetIndex, int selectedDeviceIndex)
|
||||
{
|
||||
qDebug("MainCore::changeSampleSource: deviceSet at %d", deviceSetIndex);
|
||||
DeviceSet *deviceSet = m_deviceSets[deviceSetIndex];
|
||||
deviceSet->m_deviceSourceAPI->saveSourceSettings(m_settings.getWorkingPreset()); // save old API settings
|
||||
deviceSet->m_deviceSourceAPI->stopAcquisition();
|
||||
|
||||
// deletes old UI and input object
|
||||
@ -401,8 +400,6 @@ void MainCore::changeSampleSource(int deviceSetIndex, int selectedDeviceIndex)
|
||||
DeviceSampleSource *source = deviceSet->m_deviceSourceAPI->getPluginInterface()->createSampleSourcePluginInstanceInput(
|
||||
deviceSet->m_deviceSourceAPI->getSampleSourceId(), deviceSet->m_deviceSourceAPI);
|
||||
deviceSet->m_deviceSourceAPI->setSampleSource(source);
|
||||
|
||||
deviceSet->m_deviceSourceAPI->loadSourceSettings(m_settings.getWorkingPreset()); // load new API settings
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user