mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-04-10 21:50:10 -04:00
DeviceSourceAPI: effectively delete the UI when changing the PluginInstanceGUI reference
This commit is contained in:
parent
35391e0d66
commit
7e2f302909
@ -176,6 +176,10 @@ void DeviceSourceAPI::setSampleSourcePluginInterface(PluginInterface *iface)
|
||||
|
||||
void DeviceSourceAPI::setSampleSourcePluginInstanceGUI(PluginInstanceGUI *gui)
|
||||
{
|
||||
if (m_sampleSourcePluginInstanceUI && (gui != m_sampleSourcePluginInstanceUI)) {
|
||||
m_sampleSourcePluginInstanceUI->destroy();
|
||||
}
|
||||
|
||||
m_sampleSourcePluginInstanceUI = gui;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user