From 374949552cbf4ad6622d4f8370aee7e384f58208 Mon Sep 17 00:00:00 2001 From: Andy Shaw <andy.shaw@digia.com> Date: Thu, 24 Jan 2013 21:03:13 +0100 Subject: 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) --- tools/linguist/lrelease/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v0.12