1
0
Fork 0

Fix a bug restoring a lat-lon location from history

https://sourceforge.net/p/flightgear/codetickets/2035/
This commit is contained in:
James Turner 2018-07-05 00:42:18 +01:00
parent 0f83a71860
commit b24ba303dc

View file

@ -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;