1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-21 23:55:13 -05:00

Spectrum Markers dialog: fixed minimum marker selector when adding first marker

This commit is contained in:
f4exb 2022-01-26 00:00:00 +01:00
parent 0e291f3d6e
commit 2db9efb30f

View File

@ -353,6 +353,7 @@ void SpectrumMarkersDialog::on_markerAdd_clicked()
m_histogramMarkers.back().m_power = m_power;
m_histogramMarkerIndex = m_histogramMarkers.size() - 1;
ui->marker->setMaximum(m_histogramMarkers.size() - 1);
ui->marker->setMinimum(0);
displayHistogramMarker();
}
@ -521,6 +522,7 @@ void SpectrumMarkersDialog::on_wMarkerAdd_clicked()
m_waterfallMarkers.back().m_time = m_time;
m_waterfallMarkerIndex = m_waterfallMarkers.size() - 1;
ui->wMarker->setMaximum(m_waterfallMarkers.size() - 1);
ui->wMarker->setMinimum(0);
displayWaterfallMarker();
}
@ -656,6 +658,7 @@ void SpectrumMarkersDialog::on_aMarkerAdd_clicked()
m_annotationMarkers.back().m_startFrequency = m_centerFrequency;
m_annotationMarkerIndex = m_annotationMarkers.size() - 1;
ui->aMarker->setMaximum(m_annotationMarkers.size() - 1);
ui->aMarker->setMinimum(0);
displayAnnotationMarker();
emit updateAnnotations();
}