From 514b30ecbf105da2c6109470b2a8b2571c22654c Mon Sep 17 00:00:00 2001
From: Pierre Rossi <pierre.rossi@nokia.com>
Date: Thu, 3 Jun 2010 16:04:27 +0200
Subject: [PATCH] Fix an issue with 'make ts' when CUSTOMWIZARDS_FILES is
 empty.

Reviewed-by : Daniel Molkentin
---
 share/qtcreator/translations/extract-customwizards.xq.in | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/share/qtcreator/translations/extract-customwizards.xq.in b/share/qtcreator/translations/extract-customwizards.xq.in
index 0511c217d48..2112c4be839 100644
--- a/share/qtcreator/translations/extract-customwizards.xq.in
+++ b/share/qtcreator/translations/extract-customwizards.xq.in
@@ -1,6 +1,8 @@
 let $files := ( $$CUSTOMWIZARD_FILES )
 let $prefix := string(\"QT_TRANSLATE_NOOP(&quot;ProjectExplorer::CustomWizard&quot;, &quot;\")
 let $suffix := concat(\"&quot;)\", codepoints-to-string(10))
+where empty($files)
+return
 for $file in $files
     let $doc := doc($file)
     for $text in ($doc/*:wizard/*:description, $doc/*:wizard/*:displayname, $doc/*:wizard/*:displaycategory, $doc/*:wizard/*:fieldpagetitle, $doc/*:wizard/*:fields/*:field/*:fielddescription)
-- 
GitLab