From 13c86cbdc5ad910f166f434badbb5c9e43638796 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Mon, 6 Jul 2020 21:09:59 -0400 Subject: [PATCH] Fix auto-restart when a space is in the file path --- src/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 36e05cdae..31d760be4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -161,8 +161,7 @@ int main(int argc, char** argv) // Check if restart was requested if (exitCode == RESTART_EXITCODE) { - QProcess* proc = new QProcess(); - proc->start(QCoreApplication::applicationFilePath()); + QProcess::startDetached(QCoreApplication::applicationFilePath(), {}); } #if defined(WITH_ASAN) && defined(WITH_LSAN)