Fix a bug restoring a lat-lon location from history
https://sourceforge.net/p/flightgear/codetickets/2035/
This commit is contained in:
parent
0f83a71860
commit
b24ba303dc
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue