Fix launcher adding aircraft folder with ‘Aircraft’ subdir
We validate the modified path but didn’t actually use it.
This commit is contained in:
parent
dc6a884928
commit
1b5d557c86
1 changed files with 2 additions and 1 deletions
|
@ -62,12 +62,13 @@ QString AddOnsController::addAircraftPath() const
|
||||||
if (LocalAircraftCache::isCandidateAircraftPath(path)) {
|
if (LocalAircraftCache::isCandidateAircraftPath(path)) {
|
||||||
pathOk = true;
|
pathOk = true;
|
||||||
} else {
|
} else {
|
||||||
// no aircraft in speciied path, look for Aircraft/ subdir
|
// no aircraft in specified path, look for Aircraft/ subdir
|
||||||
QDir d(path);
|
QDir d(path);
|
||||||
if (d.exists("Aircraft")) {
|
if (d.exists("Aircraft")) {
|
||||||
QString p2 = d.filePath("Aircraft");
|
QString p2 = d.filePath("Aircraft");
|
||||||
if (LocalAircraftCache::isCandidateAircraftPath(p2)) {
|
if (LocalAircraftCache::isCandidateAircraftPath(p2)) {
|
||||||
pathOk = true;
|
pathOk = true;
|
||||||
|
path = p2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue