From bbd55843d06cb2a9ae1f025b3ef358595ed02299 Mon Sep 17 00:00:00 2001 From: Tom Rondeau Date: Thu, 23 May 2013 16:37:57 -0400 Subject: qtgui: init FFT Size box for QTGUI sink to the right FFT value. Issue #542. --- gr-qtgui/lib/SpectrumGUIClass.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gr-qtgui/lib/SpectrumGUIClass.cc') diff --git a/gr-qtgui/lib/SpectrumGUIClass.cc b/gr-qtgui/lib/SpectrumGUIClass.cc index d2dbc7772..3efba3f40 100644 --- a/gr-qtgui/lib/SpectrumGUIClass.cc +++ b/gr-qtgui/lib/SpectrumGUIClass.cc @@ -133,6 +133,10 @@ SpectrumGUIClass::OpenSpectrumWindow(QWidget* parent, // GUI Thread only qApp->processEvents(); + + // Set the FFT Size combo box to display the right number + int idx = _spectrumDisplayForm->FFTSizeComboBox->findText(QString("%1").arg(_fftSize)); + _spectrumDisplayForm->FFTSizeComboBox->setCurrentIndex(idx); } void -- cgit