From a92d1f3bb4bb00b223bfa92384f669fdba7973e9 Mon Sep 17 00:00:00 2001 From: Alexis Lopez Zubieta <contact@azubieta.net> Date: Mon, 2 Sep 2019 17:51:49 -0500 Subject: [PATCH] use different QProcess::startDetached signature --- app/src/updaters/appupdater.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/updaters/appupdater.cpp b/app/src/updaters/appupdater.cpp index b595248..4044d19 100644 --- a/app/src/updaters/appupdater.cpp +++ b/app/src/updaters/appupdater.cpp @@ -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); -- GitLab