summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorProfeta <allefalvessilva2011@hotmail.com>2026-07-01 11:28:06 -0300
committerVedned Grau <allefalvessilva2011@gmail.com>2026-07-01 11:52:26 -0300
commit45fc31ba7b74a2c87690145fa163dab3f197b3a6 (patch)
treed148f72fb6efdc18b19363306640bfabff7ca1fc /indra/newview/llappviewer.cpp
parent621a2d8af9b6da91c9f2ccba133fa9aaa6ccdf9b (diff)
fix: skip empty comment strings in apply_localized_comments
Address review feedback on PR #5956: do not call setComment() when the localized string is empty, preserving the English fallback.
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r--indra/newview/llappviewer.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 67e8214bf2..b0c13d9818 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -3144,7 +3144,11 @@ static void apply_localized_comments(LLControlGroup& group, const LLSD& comments
LLControlVariablePtr control = group.getControl(it->first);
if (control.notNull())
{
- control->setComment(it->second.asString());
+ const std::string comment = it->second.asString();
+ if (!comment.empty())
+ {
+ control->setComment(comment);
+ }
}
}
}