summaryrefslogtreecommitdiff
path: root/devel/qt5-linguisttools/files/patch-src_linguist_lrelease_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'devel/qt5-linguisttools/files/patch-src_linguist_lrelease_main.cpp')
-rw-r--r--devel/qt5-linguisttools/files/patch-src_linguist_lrelease_main.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/devel/qt5-linguisttools/files/patch-src_linguist_lrelease_main.cpp b/devel/qt5-linguisttools/files/patch-src_linguist_lrelease_main.cpp
new file mode 100644
index 000000000000..2cee8e13ace2
--- /dev/null
+++ b/devel/qt5-linguisttools/files/patch-src_linguist_lrelease_main.cpp
@@ -0,0 +1,19 @@
+This is upstream as
+
+https://code.qt.io/cgit/qt/qttools.git/commit/src/linguist/lrelease?h=5.13.1&id=6a832f5474d3b4f789e4bcdebcd425e5ec98423f
+
+in 5.13.1
+
+--- src/linguist/lrelease/main.cpp.orig 2019-09-01 11:53:23 UTC
++++ src/linguist/lrelease/main.cpp
+@@ -180,7 +180,9 @@ static QStringList translationsFromProjects(const Proj
+
+ static QStringList translationsFromProject(const Project &project, bool topLevel)
+ {
+- QStringList result = *project.translations;
++ QStringList result;
++ if (project.translations)
++ result << *project.translations;
+ result << translationsFromProjects(project.subProjects, false);
+ if (topLevel && result.isEmpty()) {
+ printErr(LR::tr("lrelease warning: Met no 'TRANSLATIONS' entry in project file '%1'\n")