mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-04 14:17:50 -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)
|
void DeviceSourceAPI::setSampleSourcePluginInstanceGUI(PluginInstanceGUI *gui)
|
||||||
{
|
{
|
||||||
|
if (m_sampleSourcePluginInstanceUI && (gui != m_sampleSourcePluginInstanceUI)) {
|
||||||
|
m_sampleSourcePluginInstanceUI->destroy();
|
||||||
|
}
|
||||||
|
|
||||||
m_sampleSourcePluginInstanceUI = gui;
|
m_sampleSourcePluginInstanceUI = gui;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user