diff --git a/src/GUI/LauncherController.cxx b/src/GUI/LauncherController.cxx index 66db8daa5..592c7bd03 100644 --- a/src/GUI/LauncherController.cxx +++ b/src/GUI/LauncherController.cxx @@ -156,7 +156,7 @@ void LauncherController::restoreSettings() FGAirportRef apt = FGAirport::findByIdent(defaultAirport); if (apt) { currentLocation["location-id"] = static_cast(apt->guid()); - currentLocation["location-apt-runway"] = "active"; + currentLocation["location-apt-runway"] = "ACTIVE"; } // otherwise we failed to find the default airport in the nav-db :( } m_location->restoreLocation(currentLocation); diff --git a/src/GUI/LocationController.cxx b/src/GUI/LocationController.cxx index 5fba1044f..f6c3cffaf 100644 --- a/src/GUI/LocationController.cxx +++ b/src/GUI/LocationController.cxx @@ -705,8 +705,8 @@ void LocationController::restoreLocation(QVariantMap l) m_detailLocation.clear(); if (l.contains("location-apt-runway")) { - QString runway = l.value("location-apt-runway").toString(); - if (runway == "active") { + QString runway = l.value("location-apt-runway").toString().toUpper(); + if (runway == "ACTIVE") { m_useActiveRunway = true; } else { m_detailLocation = m_airportLocation->getRunwayByIdent(runway.toStdString());