From 2152b1e0aef09a95033171a4f57b68851ac6c1c6 Mon Sep 17 00:00:00 2001 From: stefanino-ch Date: Tue, 30 Aug 2022 18:51:27 +0200 Subject: [PATCH] Moved fix from other branch. --- src/applications/gqrx/remote_control.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/applications/gqrx/remote_control.cpp b/src/applications/gqrx/remote_control.cpp index ef9883978..b256e6fde 100644 --- a/src/applications/gqrx/remote_control.cpp +++ b/src/applications/gqrx/remote_control.cpp @@ -733,17 +733,25 @@ QString RemoteControl::cmd_set_func(QStringList cmdlist) else if ((func.compare("RECORD", Qt::CaseInsensitive) == 0) && ok) { if (rc_mode == 0 || !receiver_running) + audio_recorder_status = status; + if (status) { answer = QString("RPRT 1\n"); + if (rc_mode > 0 && receiver_running) + { + emit startAudioRecorderEvent(); + answer = QString("RPRT 0\n"); + } + else + answer = QString("RPRT 1\n"); } else { + emit stopAudioRecorderEvent(); answer = QString("RPRT 0\n"); audio_recorder_status = status; if (status) emit startAudioRecorderEvent(); - else - emit stopAudioRecorderEvent(); } } else if ((func.compare("DSP", Qt::CaseInsensitive) == 0) && ok)