1
0
Fork 0

Fix launcher adding aircraft folder with ‘Aircraft’ subdir

We validate the modified path but didn’t actually use it.
This commit is contained in:
James Turner 2018-05-23 10:24:11 +01:00
parent dc6a884928
commit 1b5d557c86

View file

@ -62,12 +62,13 @@ QString AddOnsController::addAircraftPath() const
if (LocalAircraftCache::isCandidateAircraftPath(path)) {
pathOk = true;
} else {
// no aircraft in speciied path, look for Aircraft/ subdir
// no aircraft in specified path, look for Aircraft/ subdir
QDir d(path);
if (d.exists("Aircraft")) {
QString p2 = d.filePath("Aircraft");
if (LocalAircraftCache::isCandidateAircraftPath(p2)) {
pathOk = true;
path = p2;
}
}
}