summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@digia.com>2013-01-24 20:03:13 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-28 19:05:47 (GMT)
commit374949552cbf4ad6622d4f8370aee7e384f58208 (patch)
tree62c1a530ff33b3d48e73aba661329446b21f4d87 /tools
parent33bbdb88216e72bcc3149f52e7a961609f5406a0 (diff)
downloadQt-374949552cbf4ad6622d4f8370aee7e384f58208.zip
Qt-374949552cbf4ad6622d4f8370aee7e384f58208.tar.gz
Qt-374949552cbf4ad6622d4f8370aee7e384f58208.tar.bz2
Use path() as we need the path without the filename
On Windows, filePath() was used for a function that was supposed to get the bin directory for Qt. However path() should be used instead as this will remove the filename from the originally obtained string. Change-Id: I16f8bda91fe9666c935318f8d73c715d2ea908f5 Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> (cherry picked from commit 05dab891649b76fe7351d51950edf3caba2bfece)
Diffstat (limited to 'tools')
-rw-r--r--tools/linguist/lrelease/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/linguist/lrelease/main.cpp b/tools/linguist/lrelease/main.cpp
index f180fbd..75d6107 100644
--- a/tools/linguist/lrelease/main.cpp
+++ b/tools/linguist/lrelease/main.cpp
@@ -381,7 +381,7 @@ static void initBinaryDir(
wchar_t module_name[MAX_PATH];
GetModuleFileName(0, module_name, MAX_PATH);
QFileInfo filePath = QString::fromWCharArray(module_name);
- binDir = filePath.filePath();
+ binDir = filePath.path();
#else
QString argv0 = QFile::decodeName(QByteArray(_argv0));
QString absPath;