summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@theqtcompany.com>2015-03-10 14:58:53 +0100
committerThomas Hartmann <Thomas.Hartmann@digia.com>2015-03-10 14:56:24 +0000
commit64513275b3f541d359c38af29139d4edfb698127 (patch)
tree6267ee6d1c7b50c1fac41c411d8dded9774e785f
parent7152ec2f4783027b5c2f4d0c0816e4931acf32cc (diff)
Fix lupdate for .ui.qml files
The context has to be the complete base name including ".ui". Task-number: QTBUG-44905 Change-Id: If2b148d4ecc790182a7bcc56dd17a33c4ee16617 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
-rw-r--r--src/linguist/lupdate/qdeclarative.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/linguist/lupdate/qdeclarative.cpp b/src/linguist/lupdate/qdeclarative.cpp
index bbca7a002..14f7e0d19 100644
--- a/src/linguist/lupdate/qdeclarative.cpp
+++ b/src/linguist/lupdate/qdeclarative.cpp
@@ -79,7 +79,7 @@ public:
m_todo = engine->comments();
m_translator = translator;
m_fileName = fileName;
- m_component = QFileInfo(fileName).baseName();
+ m_component = QFileInfo(fileName).completeBaseName();
accept(node);
// process the trailing comments