mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-25 09:18:54 -05:00
Spectrum markers dialog: fixed issue when there are no histogram markers. Fixes #1200
This commit is contained in:
parent
78674ead2e
commit
2f1d700201
@ -109,9 +109,9 @@ void SpectrumMarkersDialog::displayHistogramMarker()
|
||||
m_histogramMarkers[m_histogramMarkerIndex].m_markerColor.getRgb(&r, &g, &b, &a);
|
||||
ui->markerColor->setStyleSheet(tr("QLabel { background-color : rgb(%1,%2,%3); }").arg(r).arg(g).arg(b));
|
||||
ui->showMarker->setChecked(m_histogramMarkers[m_histogramMarkerIndex].m_show);
|
||||
ui->fixedPower->setVisible(m_histogramMarkers[m_histogramMarkerIndex].m_markerType == SpectrumHistogramMarker::SpectrumMarkerTypeManual);
|
||||
ui->fixedPowerUnits->setVisible(m_histogramMarkers[m_histogramMarkerIndex].m_markerType == SpectrumHistogramMarker::SpectrumMarkerTypeManual);
|
||||
}
|
||||
ui->fixedPower->setVisible(m_histogramMarkers[m_histogramMarkerIndex].m_markerType == SpectrumHistogramMarker::SpectrumMarkerTypeManual);
|
||||
ui->fixedPowerUnits->setVisible(m_histogramMarkers[m_histogramMarkerIndex].m_markerType == SpectrumHistogramMarker::SpectrumMarkerTypeManual);
|
||||
|
||||
ui->markerFrequency->blockSignals(false);
|
||||
ui->centerFrequency->blockSignals(false);
|
||||
|
Loading…
Reference in New Issue
Block a user