From bca0799b8441196dff21d95c8b5f8758a0f212d3 Mon Sep 17 00:00:00 2001 From: l_maliakal_d Date: Fri, 12 Jul 2013 10:27:16 +0000 Subject: [PATCH] fixed gui bug: time interval must be set before acquisition git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@202 af1100a4-978c-4157-bff7-07162d2ba061 --- slsDetectorGui/include/qTabPlot.h | 1 + slsDetectorGui/src/qTabPlot.cpp | 3 +++ 2 files changed, 4 insertions(+) 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