From ee623e023eae38b0959fa581a902c77006935532 Mon Sep 17 00:00:00 2001
From: Kai Uwe Broulik <kde@privat.broulik.de>
Date: Fri, 8 Oct 2021 16:21:07 +0200
Subject: [PATCH] For departureCountry check departureLocation

Obviously :)
---
 src/app/locationhelper.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/app/locationhelper.cpp b/src/app/locationhelper.cpp
index f1f35d9cc..8b02d46f8 100644
--- a/src/app/locationhelper.cpp
+++ b/src/app/locationhelper.cpp
@@ -16,7 +16,7 @@ using namespace KItinerary;
 QString LocationHelper::departureCountry(const QVariant &res)
 {
     if (LocationUtil::isLocationChange(res)) {
-        return LocationUtil::address(LocationUtil::arrivalLocation(res)).addressCountry();
+        return LocationUtil::address(LocationUtil::departureLocation(res)).addressCountry();
     }
     return LocationUtil::address(LocationUtil::location(res)).addressCountry();
 }
-- 
GitLab