From 7656475fdccb5323c60acf2d1e1e19f40f4e6f5a Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Sat, 10 Sep 2022 09:49:27 -0400 Subject: [PATCH] Diasble zero2dSlider when WideGraph is plotting in TotalPower mode. --- widgets/widegraph.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/widgets/widegraph.cpp b/widgets/widegraph.cpp index ca7b57ccf..7119eda35 100644 --- a/widgets/widegraph.cpp +++ b/widgets/widegraph.cpp @@ -491,13 +491,10 @@ void WideGraph::on_gain2dSlider_valueChanged(int value) //Gain2 void WideGraph::on_zero2dSlider_valueChanged(int value) //Zero2 { ui->widePlot->setPlot2dZero(value); - if(ui->widePlot->TotalPower()) { + if(ui->widePlot->TotalPower()) return; + if(ui->widePlot->scaleOK ()) { ui->widePlot->draw(m_swide,false,false); - } else { - if(ui->widePlot->scaleOK ()) { - ui->widePlot->draw(m_swide,false,false); - if(m_mode=="Q65") ui->widePlot->draw(m_swide,false,true); - } + if(m_mode=="Q65") ui->widePlot->draw(m_swide,false,true); } }