Fix: replace 'continue' with 'break' to return first fitting time-range

in findNextWorkTimeRange().
This commit is contained in:
Gerhard Hoffmann 2023-12-06 10:49:33 +01:00
parent 9d220df52e
commit d7beb3b41b

View File

@ -265,7 +265,7 @@ int Calculator::findNextWorkTimeRange(QDateTime const &dt,
if (dt.time() < worktime_from) {
nextWorkTimeRange = w;
continue;
break;
}
}
return nextWorkTimeRange;