1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-22 08:04:49 -05:00

Fix restoring frequencies.

This commit is contained in:
srcejon 2023-09-29 20:58:19 +01:00
parent 33629b77e2
commit e89623f64d
2 changed files with 3 additions and 1 deletions

View File

@ -505,7 +505,7 @@ void FreqScanner::processScanResults(const QDateTime& fftStartTime, const QList<
else
{
if (m_guiMessageQueue) {
m_guiMessageQueue->push(MsgStatus::create(QString("Scanning: No active channels - Max power %1 dB").arg(maxPower)));
m_guiMessageQueue->push(MsgStatus::create(QString("Scanning: No active channels - Max power %1 dB").arg(maxPower, 0, 'f', 1)));
}
}
}

View File

@ -523,9 +523,11 @@ void FreqScannerGUI::displaySettings()
ui->measurement->setCurrentIndex((int)m_settings.m_measurement);
ui->mode->setCurrentIndex((int)m_settings.m_mode);
ui->table->blockSignals(true);
for (int i = 0; i < m_settings.m_frequencies.size(); i++) {
addRow(m_settings.m_frequencies[i], m_settings.m_enabled[i], m_settings.m_notes[i]);
}
ui->table->blockSignals(false);
// Order and size columns
QHeaderView* header = ui->table->horizontalHeader();