Consistent capitalisation of ACTIVE
This commit is contained in:
parent
24d877fc18
commit
225a128540
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue