Skip to content

Commit 2f3bbc0

Browse files
committed
plugins/adc: update marker values when their number changes for single
Signed-off-by: SeptimiuVana <vana.septimiu@analog.com>
1 parent d797236 commit 2f3bbc0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugins/adc/src/freq/grfftchannelcomponent.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,10 @@ QWidget *GRFFTChannelComponent::createMarkerMenu(QWidget *parent)
243243
markerCnt->setScaleRange(1, 10);
244244
markerCnt->setValue(5);
245245

246-
connect(markerCnt, &MenuSpinbox::valueChanged, this,
247-
[=](double cnt) { m_fftPlotComponentChannel->markerController()->setNrOfMarkers(cnt); });
246+
connect(markerCnt, &MenuSpinbox::valueChanged, this, [=](double cnt) {
247+
m_fftPlotComponentChannel->markerController()->setNrOfMarkers(cnt);
248+
m_fftPlotComponentChannel->markerController()->computeMarkers();
249+
});
248250

249251
connect(section->collapseSection()->header(), &QAbstractButton::toggled, this, [=](bool b) {
250252
if(b) {

0 commit comments

Comments
 (0)