mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-06 07:07:48 -04:00
DeviceUISet: fixed deleteChannel. Fixes issue #625
This commit is contained in:
parent
308b870063
commit
1e0be6a6f7
@ -171,7 +171,6 @@ void DeviceUISet::deleteChannel(int channelIndex)
|
|||||||
qPrintable(m_channelInstanceRegistrations[channelIndex].m_channelName),
|
qPrintable(m_channelInstanceRegistrations[channelIndex].m_channelName),
|
||||||
channelIndex);
|
channelIndex);
|
||||||
m_channelInstanceRegistrations[channelIndex].m_gui->destroy();
|
m_channelInstanceRegistrations[channelIndex].m_gui->destroy();
|
||||||
m_channelInstanceRegistrations.removeAt(channelIndex);
|
|
||||||
renameChannelInstances();
|
renameChannelInstances();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2174,9 +2174,9 @@ int WebAPIAdapterGUI::devicesetChannelDelete(
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
error.init();
|
error.init();
|
||||||
*error.getMessage() = QString("There is no channel at index %1. There are %2 channels")
|
*error.getMessage() = QString("There is no channel at index %1. %2 channel(s) left")
|
||||||
.arg(channelIndex)
|
.arg(channelIndex)
|
||||||
.arg(channelIndex < deviceSet->getNumberOfChannels());
|
.arg(deviceSet->getNumberOfChannels());
|
||||||
return 400;
|
return 400;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user