summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorTannin <sherb@gmx.net>2016-05-15 14:58:54 +0200
committerTannin <sherb@gmx.net>2016-05-15 14:58:54 +0200
commit5665be7fd126c435ed4ad4ceb8c01f0e6eb16975 (patch)
tree1a9d9bdbb20d492a1b434e916b4be87cafd5a415 /src/main.cpp
parente522afa63b81301caf886c5e351de2790e5b8182 (diff)
fixed calls to helper.exe using wrong path
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp3
1 files changed, 2 insertions, 1 deletions
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 {