proceed anyway if outdir doesnt exist implmented in gui

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@212 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
l_maliakal_d 2013-07-25 09:23:38 +00:00
parent 676fe91e57
commit 16b8bb967c

View File

@ -312,10 +312,20 @@ void qTabMeasurement::startStopAcquisition(){
if(btnStartStop->isChecked()){
if(thisParent->DoesOutputDirExist() == slsDetectorDefs::FAIL){
if(qDefs::Message(qDefs::QUESTION,
"Your data will not be saved. Proceed with acquisition anyway?",
"Measurement") == slsDetectorDefs::FAIL){
disconnect(btnStartStop,SIGNAL(clicked()),this,SLOT(startStopAcquisition()));
btnStartStop->click();
connect(btnStartStop,SIGNAL(clicked()),this,SLOT(startStopAcquisition()));
return;
}else{
//done because for receiver it cant save a file with blank file path and returns without acquiring even to the gui
disconnect(chkFile, SIGNAL(toggled(bool)), this, SLOT(EnableFileWrite(bool)));
chkFile->setChecked(false);
EnableFileWrite(false);
connect(chkFile, SIGNAL(toggled(bool)), this, SLOT(EnableFileWrite(bool)));
}
}
#ifdef VERBOSE