From b24ba303dca8e57306d353327a189cde94e93e58 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 5 Jul 2018 00:42:18 +0100 Subject: [PATCH] Fix a bug restoring a lat-lon location from history https://sourceforge.net/p/flightgear/codetickets/2035/ --- src/GUI/LocationController.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/GUI/LocationController.cxx b/src/GUI/LocationController.cxx index aaeac40f1..3986b58cc 100644 --- a/src/GUI/LocationController.cxx +++ b/src/GUI/LocationController.cxx @@ -710,6 +710,9 @@ void LocationController::restoreLocation(QVariantMap l) m_locationIsLatLon = true; m_geodLocation = SGGeod::fromDeg(l.value("location-lon").toDouble(), l.value("location-lat").toDouble()); + m_location.clear(); + m_airportLocation.clear(); + m_baseQml->setInner(nullptr); } else if (l.contains("location-id")) { m_location = NavDataCache::instance()->loadById(l.value("location-id").toULongLong()); m_locationIsLatLon = false;