From cae0b204195048259d4559873211221016e562ea Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Fri, 12 Jul 2013 20:21:39 +1000 Subject: [PATCH] Better fix for #11664 If the object name is contained in the map, then always set the text: this ensure that we have exactly the same behaviour as before. --- mythtv/libs/libmythui/mythuitext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mythtv/libs/libmythui/mythuitext.cpp b/mythtv/libs/libmythui/mythuitext.cpp index 25f0ec1ac0c..0cc0108d478 100644 --- a/mythtv/libs/libmythui/mythuitext.cpp +++ b/mythtv/libs/libmythui/mythuitext.cpp @@ -169,7 +169,7 @@ void MythUIText::SetTextFromMap(QHash &map) QCoreApplication::UnicodeUTF8); QString tempString = translatedTemplate; - bool replaced = false; + bool replaced = map.contains(objectName()); while ((pos = regexp.indexIn(translatedTemplate, pos)) != -1) {