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:
parent
683bf51d0e
commit
7928d48257
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user