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);
|
FGAirportRef apt = FGAirport::findByIdent(defaultAirport);
|
||||||
if (apt) {
|
if (apt) {
|
||||||
currentLocation["location-id"] = static_cast<qlonglong>(apt->guid());
|
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 :(
|
} // otherwise we failed to find the default airport in the nav-db :(
|
||||||
}
|
}
|
||||||
m_location->restoreLocation(currentLocation);
|
m_location->restoreLocation(currentLocation);
|
||||||
|
|
|
@ -705,8 +705,8 @@ void LocationController::restoreLocation(QVariantMap l)
|
||||||
m_detailLocation.clear();
|
m_detailLocation.clear();
|
||||||
|
|
||||||
if (l.contains("location-apt-runway")) {
|
if (l.contains("location-apt-runway")) {
|
||||||
QString runway = l.value("location-apt-runway").toString();
|
QString runway = l.value("location-apt-runway").toString().toUpper();
|
||||||
if (runway == "active") {
|
if (runway == "ACTIVE") {
|
||||||
m_useActiveRunway = true;
|
m_useActiveRunway = true;
|
||||||
} else {
|
} else {
|
||||||
m_detailLocation = m_airportLocation->getRunwayByIdent(runway.toStdString());
|
m_detailLocation = m_airportLocation->getRunwayByIdent(runway.toStdString());
|
||||||
|
|
Loading…
Add table
Reference in a new issue