mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-06 18:10:40 +02:00
ask before disabling file write and fixed the ccorrect source for it
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorGui@216 af1100a4-978c-4157-bff7-07162d2ba061
This commit is contained in:
parent
2c8df98bf8
commit
ae35542193
@ -633,7 +633,7 @@ int qTabDataOutput::VerifyOutputDirectory(){
|
||||
#ifdef VERBOSE
|
||||
cout << "The output path doesnt exist anymore" << endl;
|
||||
#endif
|
||||
qDefs::Message(qDefs::WARNING,string("Invalid Output Directory ")+ mess ,"qTabDataOutput::SetAngularCorrection");
|
||||
qDefs::Message(qDefs::WARNING,string("Invalid Output Directory ")+ mess ,"qTabDataOutput::VerifyOutputDirectory");
|
||||
dispReadOutputDir->setPalette(*red1);
|
||||
boxOutDir->setPalette(red);
|
||||
|
||||
|
@ -310,9 +310,11 @@ void qTabMeasurement::setRunIndex(int index){
|
||||
|
||||
void qTabMeasurement::startStopAcquisition(){
|
||||
if(btnStartStop->isChecked()){
|
||||
if(thisParent->DoesOutputDirExist() == slsDetectorDefs::FAIL){
|
||||
|
||||
//if file write enabled and output dir doesnt exist
|
||||
if((chkFile->isChecked())&&(thisParent->DoesOutputDirExist() == slsDetectorDefs::FAIL)){
|
||||
if(qDefs::Message(qDefs::QUESTION,
|
||||
"Your data will not be saved. Proceed with acquisition anyway?",
|
||||
"<nobr>Your data will not be saved.</nobr><br><nobr>Disable File write and Proceed with acquisition anyway?</nobr>",
|
||||
"qTabMeasurement::startStopAcquisition") == slsDetectorDefs::FAIL){
|
||||
disconnect(btnStartStop,SIGNAL(clicked()),this,SLOT(startStopAcquisition()));
|
||||
btnStartStop->click();
|
||||
|
Loading…
x
Reference in New Issue
Block a user