1
0
Fork 0

GUI: do not complain if only NavData is present in scenery folder

This commit is contained in:
Szymon Acedański 2017-02-26 20:22:38 +01:00
parent bd0fa1fa5a
commit 14611e905e

View file

@ -107,13 +107,15 @@ void AddOnsPage::onAddSceneryPath()
SGPath p(path.toStdString());
SGPath objectsPath = p / "Objects";
SGPath terrainPath = p / "Terrain";
SGPath navdataPath = p / "NavData";
if (!objectsPath.exists() && !terrainPath.exists()) {
if (!objectsPath.exists() && !terrainPath.exists() && !navdataPath.exists()) {
QMessageBox mb;
mb.setText(QString("The folder '%1' doesn't appear to contain scenery - add anyway?").arg(path));
mb.setStandardButtons(QMessageBox::Yes | QMessageBox::No);
mb.setDefaultButton(QMessageBox::No);
mb.setInformativeText("Added scenery should contain folders called 'Objects' and / or 'Terrain'");
mb.setInformativeText("Added scenery should contain folders called "
"'Objects' and / or 'Terrain' and / or 'NavData'");
mb.exec();
if (mb.result() == QMessageBox::No) {