Commit e957e2aa authored by Volker Krause's avatar Volker Krause
Browse files

Improve journey auto-selection for transfers before departures

parent c11a79a3
......@@ -617,8 +617,7 @@ static KPublicTransport::Journey pickJourney(const Transfer &t, const std::vecto
if (journeys.empty()) {
return {};
}
Q_UNUSED(t)
return journeys[0]; // TODO
return t.alignment() == Transfer::Before ? journeys.back() : journeys.front();
}
void TransferManager::autoFillTransfer(Transfer &t)
......
Supports Markdown
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