Changed: Use profile ID instead of index for -p parameter

This commit is contained in:
kervala 2016-06-11 17:04:19 +02:00
parent ba121d3bdd
commit dfb0d70ccf

View file

@ -91,7 +91,7 @@ void CMainWindow::onPlayClicked()
QStringList arguments; QStringList arguments;
arguments << "-p"; arguments << "-p";
arguments << QString::number(profileIndex); arguments << profile.id;
arguments << profile.arguments.split(' '); arguments << profile.arguments.split(' ');
bool started = QProcess::startDetached(executable, arguments); bool started = QProcess::startDetached(executable, arguments);
@ -115,7 +115,7 @@ void CMainWindow::onConfigureClicked()
QStringList arguments; QStringList arguments;
arguments << "-p"; arguments << "-p";
arguments << QString::number(profileIndex); arguments << profile.id;
bool started = QProcess::startDetached(executable, arguments); bool started = QProcess::startDetached(executable, arguments);