Commit 5e4ec393 authored by Volker Krause's avatar Volker Krause
Browse files

Don't trigger the connection warning when there is no previous arrival time

parent 4762c9ca
......@@ -531,7 +531,11 @@ bool TimelineDelegateController::connectionWarning() const
const auto prevArrDt = std::max(SortUtil::endDateTime(prevRes), prevArr.expectedArrivalTime());
const auto curDepDt = std::max(SortUtil::startDateTime(curRes), departure().expectedDepartureTime());
if (curDepDt.isValid() && prevArrDt.isValid()) {
return curDepDt < prevArrDt;
return false;
bool TimelineDelegateController::isCanceled() const
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment