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
This commit is contained in:
l_maliakal_d 2014-02-03 13:10:53 +00:00
parent 922c7ede92
commit 32e4af910d

View File

@ -585,7 +585,10 @@ void qTabPlot::SetFrequency(){
acqPeriodMS = (myDet->setTimer(slsDetectorDefs::ACQUISITION_TIME,-1)*(1E-6));
if(acqPeriodMS==0){
qDefs::Message(qDefs::WARNING,"<nobr>Interval between Plots:</nobr><br><nobr>"
//to reduce the warnings displayed
if((comboFrequency->currentIndex() == 0) && (spinTimeGap->value() == minPlotTimer));
else
qDefs::Message(qDefs::WARNING,"<nobr>Interval between Plots:</nobr><br><nobr>"
"<b>Every Nth Image</b>: Period betwen Frames and Exposure Time cannot both be 0 ms.</nobr><br><nobr>"
"Resetting to minimum plotting time interval","qTabPlot::SetFrequency");
comboFrequency->setCurrentIndex(0);