Skip to content

Commit

Permalink
Merge pull request #1089 from gqrx-sdr/fix-rds-remote
Browse files Browse the repository at this point in the history
Return correct RDS status in remote control
  • Loading branch information
argilo authored Jan 25, 2022
2 parents 0b6bdd2 + 85846a4 commit 263db21
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
1 change: 1 addition & 0 deletions resources/news.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

FIXED: Crash when DSP is restarted after a long pause.
FIXED: Remove usage of deprecated Qt APIs.
FIXED: Return correct RDS status in remote control.
IMPROVED: Allow ordinary IP addresses to be used in remote control settings.


Expand Down
2 changes: 1 addition & 1 deletion src/applications/gqrx/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,6 @@ MainWindow::MainWindow(const QString& cfgfile, bool edit_conf, QWidget *parent)

// remote control
connect(remote, SIGNAL(newRDSmode(bool)), uiDockRDS, SLOT(setRDSmode(bool)));
connect(uiDockRDS, SIGNAL(rdsDecoderToggled(bool)), remote, SLOT(setRDSstatus(bool)));
connect(remote, SIGNAL(newFilterOffset(qint64)), this, SLOT(setFilterOffset(qint64)));
connect(remote, SIGNAL(newFilterOffset(qint64)), uiDockRxOpt, SLOT(setFilterOffset(qint64)));
connect(remote, SIGNAL(newFrequency(qint64)), ui->freqCtrl, SLOT(setFrequency(qint64)));
Expand Down Expand Up @@ -2161,6 +2160,7 @@ void MainWindow::setRdsDecoder(bool checked)
rx->stop_rds_decoder();
rds_timer->stop();
}
remote->setRDSstatus(checked);
}

void MainWindow::onBookmarkActivated(qint64 freq, const QString& demod, int bandwidth)
Expand Down
7 changes: 0 additions & 7 deletions src/qtgui/dockrds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,6 @@ void DockRDS::setRDSmode(bool cmd)
{
if (!ui->rdsCheckbox->isEnabled())
return;
if (cmd == ui->rdsCheckbox->isChecked())
return;

ui->rdsCheckbox->setDisabled(true);
ui->rdsCheckbox->blockSignals(true);
emit rdsDecoderToggled(cmd);
ui->rdsCheckbox->setChecked(cmd);
ui->rdsCheckbox->blockSignals(false);
ui->rdsCheckbox->setEnabled(true);
}

0 comments on commit 263db21

Please sign in to comment.