mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-22 03:40:04 +02:00
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:
parent
676fe91e57
commit
16b8bb967c
@ -312,10 +312,20 @@ void qTabMeasurement::startStopAcquisition(){
|
|||||||
if(btnStartStop->isChecked()){
|
if(btnStartStop->isChecked()){
|
||||||
|
|
||||||
if(thisParent->DoesOutputDirExist() == slsDetectorDefs::FAIL){
|
if(thisParent->DoesOutputDirExist() == slsDetectorDefs::FAIL){
|
||||||
disconnect(btnStartStop,SIGNAL(clicked()),this,SLOT(startStopAcquisition()));
|
if(qDefs::Message(qDefs::QUESTION,
|
||||||
btnStartStop->click();
|
"Your data will not be saved. Proceed with acquisition anyway?",
|
||||||
connect(btnStartStop,SIGNAL(clicked()),this,SLOT(startStopAcquisition()));
|
"Measurement") == slsDetectorDefs::FAIL){
|
||||||
return;
|
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
|
#ifdef VERBOSE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user