From 4c9216dcc2521612db8b80f0b814d07e38f0d910 Mon Sep 17 00:00:00 2001 From: lotodore Date: Sat, 6 Oct 2007 13:19:49 +0000 Subject: [PATCH] Fixed data path. --- src/gui/qt/qttools/nonqthelper/nonqthelper.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/qt/qttools/nonqthelper/nonqthelper.cpp b/src/gui/qt/qttools/nonqthelper/nonqthelper.cpp index 238236e3..98bf90dd 100644 --- a/src/gui/qt/qttools/nonqthelper/nonqthelper.cpp +++ b/src/gui/qt/qttools/nonqthelper/nonqthelper.cpp @@ -47,5 +47,7 @@ std::string NonQtHelper::getDataPathStdString(const char *argv0) { boost::filesystem::path startPath(argv0); - return stringToUtf8(startPath.remove_leaf().directory_string() + "data/"); + startPath = startPath.remove_leaf(); + startPath /= "data"; + return stringToUtf8(startPath.directory_string()); }