refactor on the gui from review missed out in pr

This commit is contained in:
maliakal_d 2021-06-11 11:54:22 +02:00
parent 621bb6cbfd
commit 26acde979f

View File

@ -361,8 +361,9 @@ void qTabSettings::GetCounterMask() {
auto retval = sls::getSetBits(det->getCounterMask().tsquash( auto retval = sls::getSetBits(det->getCounterMask().tsquash(
"Counter mask is inconsistent for all detectors.")); "Counter mask is inconsistent for all detectors."));
// default to unchecked // default to unchecked
std::for_each(counters, [](auto &i) { i.setChecked(false); }); for (auto p : counters) {
// std::for_each(counters.begin(), counters.end(), ) p->setChecked(false);
}
// if retval[i] = 2, chkCounter2 is checked // if retval[i] = 2, chkCounter2 is checked
for (auto i : retval) { for (auto i : retval) {
if (i > 3) { if (i > 3) {