Fix passed update argument

This commit is contained in:
woblight
2018-07-22 22:51:13 +02:00
parent 76bb1a980a
commit ba52d8a498
+2 -2
View File
@@ -82,9 +82,9 @@ int main(int argc, char *argv[])
if (res == 2) {
QStringList args = app.arguments().mid(1);
args << "--update" << QString("%1").arg(app.applicationDirPath());
QProcess::startDetached(app.applicationDirPath()+"/update/" + GAM_EXEC, args);
QProcess::startDetached(app.applicationDirPath()+"/update/" + GAM_EXEC, args, app.applicationDirPath()+"/update");
}
if (res == 3)
QProcess::startDetached(update + "/" + GAM_EXEC, QApplication::arguments().mid(1) << "--update" << "");
QProcess::startDetached(update + "/" + GAM_EXEC, QApplication::arguments().mid(1) << "--update" << "", update);
return res;
}