1
0
Fork 0

Launcher: fix handling of prop custom args.

The parser wasn’t special case these, and they have to be handled
differently to work now.
This commit is contained in:
James Turner 2017-04-15 08:39:18 +01:00
parent ec9989c244
commit 5fa9242d7a

View file

@ -53,9 +53,13 @@ void ExtraSettingsSection::doApply()
LauncherArgumentTokenizer tk;
Q_FOREACH(auto arg, tk.tokenize(m_argsEdit->toPlainText())) {
if (arg.arg.startsWith("prop:")) {
m_config->setProperty(arg.arg.mid(5), arg.value);
} else {
m_config->setArg(arg.arg, arg.value);
}
}
}
void ExtraSettingsSection::saveState(QSettings &settings) const
{