Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan White <support@dmapps.us>2020-07-07 04:09:59 +0300
committerJonathan White <support@dmapps.us>2020-07-07 04:09:59 +0300
commit13c86cbdc5ad910f166f434badbb5c9e43638796 (patch)
treeb89473dabc95f725ea84811dcf901fbae86260bb
parent44f2d3a3c26f291b558cbff638fdecd2c5c87936 (diff)
Fix auto-restart when a space is in the file path
-rw-r--r--src/main.cpp3
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)