Commit 9ce96498 authored by Volker Krause's avatar Volker Krause

Fix arrival/departure mix-up

This should fix another high frequency polling loop, and fix the visual
update glitches when new data arrives.
parent f8bdc703
......@@ -230,8 +230,8 @@ void LiveDataManager::checkTrainTrip(const QVariant &res, const QString& resId)
void LiveDataManager::updateArrivalData(const KPublicTransport::Departure &arr, const QString &resId)
{
const auto oldArr = m_departures.value(resId).change;
m_departures.insert(resId, {arr, QDateTime::currentDateTimeUtc()});
const auto oldArr = m_arrivals.value(resId).change;
m_arrivals.insert(resId, {arr, QDateTime::currentDateTimeUtc()});
storePublicTransportData(resId, arr, QStringLiteral("arrival"));
// check if we can update static information in the reservation with what we received
......
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