Skip to content

Commit

Permalink
Settings debug
Browse files Browse the repository at this point in the history
  • Loading branch information
vladisslav2011 committed May 9, 2024
1 parent 39165f1 commit 51ce3fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/applications/gqrx/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ bool MainWindow::loadConfig(const QString& cfgfile, bool check_crash,
}

QString indev = m_settings->value("input/device", "").toString();
qDebug() << "Selected device string: "<<m_settings->value("input/device","").toString();
if (!indev.isEmpty())
{
try
Expand Down Expand Up @@ -2542,6 +2543,7 @@ void MainWindow::stopIqPlayback()

// restore original input device
auto indev = m_settings->value("input/device", "").toString();
qDebug() << "Restored device string: "<<m_settings->value("input/device","").toString();
rx->set_input_device(indev.toStdString());

// restore sample rate
Expand Down
2 changes: 2 additions & 0 deletions src/qtgui/ioconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ void CIoConfig::saveConfig()

// input settings
m_settings->setValue("input/device", ui->inDevEdit->text()); // "OK" button disabled if empty
qDebug() << "[ioconfig] Selected device string: "<<m_settings->value("input/device","").toString();

qint64 value = (qint64)(ui->bwSpinBox->value()*1.e6);
if (value)
Expand Down Expand Up @@ -615,6 +616,7 @@ void CIoConfig::updateDecimations(void)
void CIoConfig::updateInDev(const QSettings *settings, const std::map<QString, QVariant> &devList)
{
QString indev = settings->value("input/device", "").toString();
qDebug() << "[ioconfig] Selected device string: "<<m_settings->value("input/device","").toString();
bool cfgmatch = false; //flag to indicate that device from config was found

// insert the device list in device combo box
Expand Down

0 comments on commit 51ce3fd

Please sign in to comment.