Commit caac04f5 authored by azubieta's avatar azubieta
Browse files

Merge branch 'update_dialog' into 'master'

use different QProcess::startDetached signature

See merge request dfn2/ocs-manager!4
parents d694fe85 a92d1f3b
Pipeline #923 passed with stage
in 6 minutes and 18 seconds
......@@ -77,11 +77,10 @@ void AppUpdater::doRestart()
QProcess proc;
proc.setProgram(path);
proc.setEnvironment(getCleanSystemEnvironment());
qDebug() << proc.environment();
if (proc.startDetached()) {
if (proc.startDetached(path)) {
updateDialog.accept();
} else
updateDialog.showErrorMessage("Unable to start: " + path);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment