summaryrefslogtreecommitdiff
path: root/src/selfupdater.cpp
diff options
context:
space:
mode:
authorLostDragonist <lost.dragonist@gmail.com>2018-12-30 16:27:43 -0600
committerGitHub <noreply@github.com>2018-12-30 16:27:43 -0600
commitb2ca83366a4794990b39bcc02861ae120d40cb09 (patch)
treea646dbcfb20a1289179508649c7431036e06e85b /src/selfupdater.cpp
parent4436d376a8d426867f217b03838570a424b09c5f (diff)
parent71091f679dd1625b96e6d88d781a93fe6f14d210 (diff)
Merge pull request #601 from Project579/archive_conflicts_2
Archive conflicts Updating to Lastest Develop
Diffstat (limited to 'src/selfupdater.cpp')
-rw-r--r--src/selfupdater.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/selfupdater.cpp b/src/selfupdater.cpp
index 7c0682bf..d26ca96c 100644
--- a/src/selfupdater.cpp
+++ b/src/selfupdater.cpp
@@ -327,10 +327,10 @@ void SelfUpdater::installUpdate()
const QString mopath
= QDir::fromNativeSeparators(qApp->property("dataPath").toString());
- const std::wstring params = L"/DIR=" + qApp->applicationDirPath().toStdWString();
+ std::wstring parameters = ToWString("/DIR=\"" + qApp->applicationDirPath() + "\" ");
HINSTANCE res = ::ShellExecuteW(
- nullptr, L"open", m_UpdateFile.fileName().toStdWString().c_str(), params.c_str(),
+ nullptr, L"open", m_UpdateFile.fileName().toStdWString().c_str(), parameters.c_str(),
nullptr, SW_SHOW);
if (res > (HINSTANCE)32) {