From 32e4af910d39b23284c4c13c9859f382a6b7260e Mon Sep 17 00:00:00 2001 From: l_maliakal_d Date: Mon, 3 Feb 2014 13:10:53 +0000 Subject: [PATCH] to reduce warning in between plotting git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@255 af1100a4-978c-4157-bff7-07162d2ba061 --- slsDetectorGui/src/qTabPlot.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/slsDetectorGui/src/qTabPlot.cpp b/slsDetectorGui/src/qTabPlot.cpp index b072f84a9..2498be00b 100644 --- a/slsDetectorGui/src/qTabPlot.cpp +++ b/slsDetectorGui/src/qTabPlot.cpp @@ -585,7 +585,10 @@ void qTabPlot::SetFrequency(){ acqPeriodMS = (myDet->setTimer(slsDetectorDefs::ACQUISITION_TIME,-1)*(1E-6)); if(acqPeriodMS==0){ - qDefs::Message(qDefs::WARNING,"Interval between Plots:
" + //to reduce the warnings displayed + if((comboFrequency->currentIndex() == 0) && (spinTimeGap->value() == minPlotTimer)); + else + qDefs::Message(qDefs::WARNING,"Interval between Plots:
" "Every Nth Image: Period betwen Frames and Exposure Time cannot both be 0 ms.
" "Resetting to minimum plotting time interval","qTabPlot::SetFrequency"); comboFrequency->setCurrentIndex(0);