1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 14:04:46 -04:00

Web API: /sdrangel/deviceset/{deviceSetIndex}/channel/{channelIndex} DELETE implemented in GUI also

This commit is contained in:
f4exb
2017-12-23 23:41:37 +01:00
parent b011185e42
commit ead034e21d
90 changed files with 1866 additions and 1714 deletions
+4 -2
View File
@@ -1027,7 +1027,8 @@ int WebAPIAdapterSrv::devicesetChannelDelete(
if (deviceSet->m_deviceSourceEngine) // Rx
{
if (channelIndex < deviceSet->getNumberOfRxChannels()) {
if (channelIndex < deviceSet->getNumberOfRxChannels())
{
MainCore::MsgDeleteChannel *msg = MainCore::MsgDeleteChannel::create(deviceSetIndex, channelIndex, false);
m_mainCore.m_inputMessageQueue.push(msg);
@@ -1047,7 +1048,8 @@ int WebAPIAdapterSrv::devicesetChannelDelete(
}
else if (deviceSet->m_deviceSinkEngine) // Tx
{
if (channelIndex < deviceSet->getNumberOfTxChannels()) {
if (channelIndex < deviceSet->getNumberOfTxChannels())
{
MainCore::MsgDeleteChannel *msg = MainCore::MsgDeleteChannel::create(deviceSetIndex, channelIndex, true);
m_mainCore.m_inputMessageQueue.push(msg);