there was a gap between start and get status

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@154 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
l_maliakal_d
2013-03-06 10:16:48 +00:00
parent 448f333b1e
commit ab41ffb6bf
6 changed files with 23 additions and 10 deletions

View File

@ -724,7 +724,6 @@ int qDetectorMain::StartStopAcquisitionFromClient(bool start){
#ifdef VERBOSE
cout << "Start/Stop Acquisition From Client:" << start << endl;
#endif
int ret = slsDetectorDefs::FAIL;
if (tab_measurement->GetStartStatus() != start){
if(start){
@ -735,12 +734,10 @@ int qDetectorMain::StartStopAcquisitionFromClient(bool start){
}
//click start/stop
tab_measurement->ClickStartStop();
while(myPlot->GetClientInitiated());
}
if (myPlot->isRunning() == start)
ret = slsDetectorDefs::OK;
return ret;
return slsDetectorDefs::OK;
}