mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-02 22:14:45 -04:00
DeviceUISet: fixed deleteChannel. Fixes issue #625
This commit is contained in:
@@ -2174,9 +2174,9 @@ int WebAPIAdapterGUI::devicesetChannelDelete(
|
||||
else
|
||||
{
|
||||
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 < deviceSet->getNumberOfChannels());
|
||||
.arg(deviceSet->getNumberOfChannels());
|
||||
return 400;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user