diff --git a/slsDetectorGui/include/qTabPlot.h b/slsDetectorGui/include/qTabPlot.h index 57a964942..0dbda9cd0 100644 --- a/slsDetectorGui/include/qTabPlot.h +++ b/slsDetectorGui/include/qTabPlot.h @@ -116,6 +116,7 @@ public slots: */ void UpdateAfterCloning(); + private slots: /** Selects the plot to display, enables/disables widgets * @param b true to select plot dimension 1, else false to select 2D diff --git a/slsDetectorGui/src/qTabPlot.cpp b/slsDetectorGui/src/qTabPlot.cpp index b68e92acf..2592be6cb 100644 --- a/slsDetectorGui/src/qTabPlot.cpp +++ b/slsDetectorGui/src/qTabPlot.cpp @@ -858,11 +858,14 @@ void qTabPlot::Refresh(){ cout << endl << "**Updating Plot Tab" << endl; #endif if(!myPlot->isRunning()){ + if (!radioNoPlot->isChecked()) + boxFrequency->setEnabled(true); connect(boxScan, SIGNAL(toggled(bool)), this, SLOT(EnableScanBox())); EnableScanBox(); SetFrequency(); }else{ + boxFrequency->setEnabled(false); disconnect(boxScan, SIGNAL(toggled(bool)), this, SLOT(EnableScanBox())); boxScan->setEnabled(false); //to toggle between no plot and the plot mode chosen while pltting