From 1b5d557c86fda2b23cb746aaf2ee0357d2269bf7 Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 23 May 2018 10:24:11 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20launcher=20adding=20aircraft=20folder=20w?= =?UTF-8?q?ith=20=E2=80=98Aircraft=E2=80=99=20subdir?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We validate the modified path but didn’t actually use it. --- src/GUI/AddOnsController.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GUI/AddOnsController.cxx b/src/GUI/AddOnsController.cxx index 72dd76ad4..8e65cf892 100644 --- a/src/GUI/AddOnsController.cxx +++ b/src/GUI/AddOnsController.cxx @@ -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; } } }