Spectrum markers dialog: fixed issue when there are no histogram markers. Fixes #1200

pull/1205/head
f4exb 2022-04-26 22:56:01 +02:00
rodzic 78674ead2e
commit 2f1d700201
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -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);