mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-24 23:30:03 +02:00
minor
This commit is contained in:
parent
b9aa7bcc8e
commit
1bcf10a211
@ -451,9 +451,11 @@ void qTabDataOutput::GetCounterMask() {
|
|||||||
"Counter mask is inconsistent for all detectors."));
|
"Counter mask is inconsistent for all detectors."));
|
||||||
std::vector<QCheckBox *> counters = {chkCounter1, chkCounter2,
|
std::vector<QCheckBox *> counters = {chkCounter1, chkCounter2,
|
||||||
chkCounter3};
|
chkCounter3};
|
||||||
|
// default to unchecked
|
||||||
for (unsigned int i = 0; i < counters.size(); ++i) {
|
for (unsigned int i = 0; i < counters.size(); ++i) {
|
||||||
counters[i]->setChecked(false);
|
counters[i]->setChecked(false);
|
||||||
}
|
}
|
||||||
|
// if retva[i] = 2, chkCounter2 is checked
|
||||||
for (unsigned int i = 0; i < retval.size(); ++i) {
|
for (unsigned int i = 0; i < retval.size(); ++i) {
|
||||||
if (retval[i] > 3) {
|
if (retval[i] > 3) {
|
||||||
throw sls::RuntimeError(
|
throw sls::RuntimeError(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user