From d7398866c7aee2dd345fd4a2923fdd50aebfc02f Mon Sep 17 00:00:00 2001 From: James Turner Date: Mon, 13 Apr 2020 09:35:52 +0100 Subject: [PATCH] =?UTF-8?q?Launcher:=20allow=20=E2=80=98Airports=E2=80=99?= =?UTF-8?q?=20when=20adding=20a=20scenery=20path?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adjust the warning message to allow for ‘Airports-only’ scenery paths to be added. --- src/GUI/AddOnsController.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GUI/AddOnsController.cxx b/src/GUI/AddOnsController.cxx index 3428dfe4d..39e7e44bd 100644 --- a/src/GUI/AddOnsController.cxx +++ b/src/GUI/AddOnsController.cxx @@ -215,7 +215,7 @@ QString AddOnsController::addSceneryPath() const SGPath p(path.toStdString()); bool isValid = false; - for (const auto& dir: {"Objects", "Terrain", "Buildings", "Roads", "Pylons", "NavData"}) { + for (const auto& dir: {"Objects", "Terrain", "Buildings", "Roads", "Pylons", "NavData", "Airports"}) { if ((p / dir).exists()) { isValid = true; break; @@ -228,7 +228,7 @@ QString AddOnsController::addSceneryPath() const mb.setStandardButtons(QMessageBox::Yes | QMessageBox::No); mb.setDefaultButton(QMessageBox::No); mb.setInformativeText(tr("Added scenery should contain at least one of the following " - "folders: Objects, Terrain, Buildings, Roads, Pylons, NavData.")); + "folders: Objects, Terrain, Buildings, Roads, Pylons, NavData, Airports.")); mb.exec(); if (mb.result() == QMessageBox::No) {