]> git.mxchange.org Git - flightgear.git/commitdiff
QtLauncher: fix adding aircraft paths
authorRebecca N. Palmer <rebecca_palmer@zoho.com>
Fri, 3 Apr 2015 13:13:13 +0000 (14:13 +0100)
committerRebecca N. Palmer <rebecca_palmer@zoho.com>
Fri, 3 Apr 2015 13:13:13 +0000 (14:13 +0100)
Avoids Nasal security errors when using "Additional aircraft locations"

src/GUI/QtLauncher.cxx

index d36ca2fc5dc55eef889b616cd0d3e68fc76268f0..dcfd82b2d57c05c33ad29d86ac768a38910f498d 100644 (file)
@@ -769,7 +769,8 @@ void QtLauncher::onRun()
     // aircraft paths
     for (int i=0; i<m_ui->aircraftPathsList->count(); ++i) {
         QString path = m_ui->aircraftPathsList->item(i)->text();
-        opt->addOption("fg-aircraft", path.toStdString());
+        // can't use fg-aircraft for this, as it is processed before the launcher is run
+        globals->append_aircraft_path(path.toStdString());
     }
 
     // additional arguments