Fix: replace 'continue' with 'break' to return first fitting time-range
in findNextWorkTimeRange().
This commit is contained in:
parent
9d220df52e
commit
d7beb3b41b
@ -265,7 +265,7 @@ int Calculator::findNextWorkTimeRange(QDateTime const &dt,
|
|||||||
|
|
||||||
if (dt.time() < worktime_from) {
|
if (dt.time() < worktime_from) {
|
||||||
nextWorkTimeRange = w;
|
nextWorkTimeRange = w;
|
||||||
continue;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nextWorkTimeRange;
|
return nextWorkTimeRange;
|
||||||
|
Loading…
Reference in New Issue
Block a user