diff options
author | Jonathan White <support@dmapps.us> | 2020-07-07 04:09:59 +0300 |
---|---|---|
committer | Jonathan White <support@dmapps.us> | 2020-07-07 04:09:59 +0300 |
commit | 13c86cbdc5ad910f166f434badbb5c9e43638796 (patch) | |
tree | b89473dabc95f725ea84811dcf901fbae86260bb | |
parent | 44f2d3a3c26f291b558cbff638fdecd2c5c87936 (diff) |
Fix auto-restart when a space is in the file path
-rw-r--r-- | src/main.cpp | 3 |
1 files changed, 1 insertions, 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) |