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,7 +53,11 @@ void ExtraSettingsSection::doApply()
LauncherArgumentTokenizer tk;
Q_FOREACH(auto arg, tk.tokenize(m_argsEdit->toPlainText())) {
m_config->setArg(arg.arg, arg.value);
if (arg.arg.startsWith("prop:")) {
m_config->setProperty(arg.arg.mid(5), arg.value);
} else {
m_config->setArg(arg.arg, arg.value);
}
}
}