diff --git a/src/app/livedatamanager.cpp b/src/app/livedatamanager.cpp index b0f53ac738bb1a6954f946d40e9ab3b1fe6e4c7a..33d7c75e432a225135b3a6e248dece5ba427a5c4 100644 --- a/src/app/livedatamanager.cpp +++ b/src/app/livedatamanager.cpp @@ -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