1
0
Fork 0

Consistent capitalisation of ACTIVE

This commit is contained in:
James Turner 2018-06-21 17:34:16 +01:00
parent 24d877fc18
commit 225a128540
2 changed files with 3 additions and 3 deletions

View file

@ -156,7 +156,7 @@ void LauncherController::restoreSettings()
FGAirportRef apt = FGAirport::findByIdent(defaultAirport);
if (apt) {
currentLocation["location-id"] = static_cast<qlonglong>(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);

View file

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