1
0
Fork 0

QtLauncher: fix adding aircraft paths

Avoids Nasal security errors when using "Additional aircraft locations"
This commit is contained in:
Rebecca N. Palmer 2015-04-03 14:13:13 +01:00
parent e10b493421
commit ca362e9251

View 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