From 5665be7fd126c435ed4ad4ceb8c01f0e6eb16975 Mon Sep 17 00:00:00 2001 From: Tannin Date: Sun, 15 May 2016 14:58:54 +0200 Subject: fixed calls to helper.exe using wrong path --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 6db5a50e..3cced2a1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -104,7 +104,8 @@ bool createAndMakeWritable(const std::wstring &subPath) "will be made writable for the current user account). You will be asked to run " "\"helper.exe\" with administrative rights."), QMessageBox::Yes | QMessageBox::Cancel) == QMessageBox::Yes) { - if (!Helper::init(dataPath.toStdWString())) { + if (!Helper::init(qApp->applicationDirPath().toStdWString(), + dataPath.toStdWString())) { return false; } } else { -- cgit v1.3.1