fix bug when no programSettings.txt
This commit is contained in:
parent
c6eabca9d1
commit
4c4c7f3860
11
FSUDAQ.cpp
11
FSUDAQ.cpp
|
@ -340,19 +340,18 @@ void MainWindow::OpenDataPath(){
|
||||||
if( result > 0 ) {
|
if( result > 0 ) {
|
||||||
leDataPath->setText(fileDialog.selectedFiles().at(0));
|
leDataPath->setText(fileDialog.selectedFiles().at(0));
|
||||||
rawDataPath = leDataPath->text();
|
rawDataPath = leDataPath->text();
|
||||||
bnStartACQ->setEnabled(true);
|
chkSaveData->setEnabled(true);
|
||||||
bnStartACQ->setStyleSheet("background-color: green;");
|
|
||||||
}else{
|
}else{
|
||||||
leDataPath->clear();
|
leDataPath->clear();
|
||||||
rawDataPath = "";
|
rawDataPath = "";
|
||||||
bnStartACQ->setEnabled(false);
|
chkSaveData->setEnabled(false);
|
||||||
bnStartACQ->setStyleSheet("");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SaveProgramSettings();
|
SaveProgramSettings();
|
||||||
|
|
||||||
LoadLastRunFile();
|
LoadLastRunFile();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::OpenRecord(){
|
void MainWindow::OpenRecord(){
|
||||||
|
@ -1105,6 +1104,8 @@ void MainWindow::StartACQ(){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
chkSaveData->setEnabled(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::StopACQ(){
|
void MainWindow::StopACQ(){
|
||||||
|
@ -1193,6 +1194,8 @@ void MainWindow::StopACQ(){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
chkSaveData->setEnabled(true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::AutoRun(){ //TODO
|
void MainWindow::AutoRun(){ //TODO
|
||||||
|
|
Loading…
Reference in New Issue
Block a user