summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-06-07 19:54:51 +0200
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-06-07 19:59:17 +0200
commitf343c6efac717e3a58d74614c7eb0b84ed380099 (patch)
treefc00a95c731156bffa1af064578dfa3f501c2ea2 /tools
parent66e4bcd6249477f5a1e05911443c9a8e73f18738 (diff)
downloadqt4-tools-f343c6efac717e3a58d74614c7eb0b84ed380099.tar.gz
fix translations from some header files being omitted
add the containing directories of all files specified on the command line to the list of project roots. otherwise, the strings from headers which are included before being encountered on the command line will be omitted. Task-number: QTBUG-10345
Diffstat (limited to 'tools')
-rw-r--r--tools/linguist/lupdate/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/linguist/lupdate/main.cpp b/tools/linguist/lupdate/main.cpp
index b2bfd7c15b..274e33c3f0 100644
--- a/tools/linguist/lupdate/main.cpp
+++ b/tools/linguist/lupdate/main.cpp
@@ -627,6 +627,7 @@ int main(int argc, char **argv)
}
} else {
sourceFiles << QDir::cleanPath(fi.absoluteFilePath());;
+ projectRoots.insert(fi.absolutePath() + QLatin1Char('/'));
}
numFiles++;
}