1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-29 03:09:14 -05:00

MainWindow: disconnect prior to connect in device re-numeration. Fixes #1620

This commit is contained in:
f4exb 2023-03-11 12:42:59 +01:00
parent 683bf51d0e
commit 7928d48257

View File

@ -1081,6 +1081,12 @@ void MainWindow::removeDeviceSet(int deviceSetIndex)
DeviceGUI *deviceGUI = m_deviceUIs[i]->m_deviceGUI; DeviceGUI *deviceGUI = m_deviceUIs[i]->m_deviceGUI;
Workspace *deviceWorkspace = m_workspaces[deviceGUI->getWorkspaceIndex()]; Workspace *deviceWorkspace = m_workspaces[deviceGUI->getWorkspaceIndex()];
QObject::disconnect(
deviceGUI,
&DeviceGUI::addChannelEmitted,
this,
nullptr
);
QObject::connect( QObject::connect(
deviceGUI, deviceGUI,
&DeviceGUI::addChannelEmitted, &DeviceGUI::addChannelEmitted,