summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-06-07 17:54:51 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2010-06-07 17:59:17 (GMT)
commitf343c6efac717e3a58d74614c7eb0b84ed380099 (patch)
treefc00a95c731156bffa1af064578dfa3f501c2ea2 /tools
parent66e4bcd6249477f5a1e05911443c9a8e73f18738 (diff)
downloadQt-f343c6efac717e3a58d74614c7eb0b84ed380099.zip
Qt-f343c6efac717e3a58d74614c7eb0b84ed380099.tar.gz
Qt-f343c6efac717e3a58d74614c7eb0b84ed380099.tar.bz2
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 b2bfd7c..274e33c 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++;
}