summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaternewfeaturenotification.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2025-04-30 09:40:14 +0800
committerErik Kundiman <erik@megapahit.org>2025-04-30 09:40:14 +0800
commitc0a2498fa1ff074fa29b31bbd63b2ac6f69b38bb (patch)
tree0909d51200a3de225f20ebe7d0aa7cb95fb380e1 /indra/newview/llfloaternewfeaturenotification.cpp
parent39cc9a1706340d6f84b152593a4d8aaeeaa88b56 (diff)
parentd9e55c44152064133796bfb08f1da524387c1300 (diff)
Merge tag 'Second_Life_Release#d9e55c44-Second_Life_Release#d9e55c4-2025.04' into 2025.04
Diffstat (limited to 'indra/newview/llfloaternewfeaturenotification.cpp')
-rw-r--r--indra/newview/llfloaternewfeaturenotification.cpp26
1 files changed, 21 insertions, 5 deletions
diff --git a/indra/newview/llfloaternewfeaturenotification.cpp b/indra/newview/llfloaternewfeaturenotification.cpp
index 369727ff1e..1badcdd3d9 100644
--- a/indra/newview/llfloaternewfeaturenotification.cpp
+++ b/indra/newview/llfloaternewfeaturenotification.cpp
@@ -43,12 +43,28 @@ bool LLFloaterNewFeatureNotification::postBuild()
setCanDrag(false);
getChild<LLButton>("close_btn")->setCommitCallback(boost::bind(&LLFloaterNewFeatureNotification::onCloseBtn, this));
- const std::string title_txt = "title_txt";
- const std::string dsc_txt = "description_txt";
- std::string feature = "_" + getKey().asString();
+ if (getKey().isString())
+ {
+ const std::string title_txt = "title_txt";
+ const std::string dsc_txt = "description_txt";
- getChild<LLUICtrl>(title_txt)->setValue(getString(title_txt + feature));
- getChild<LLUICtrl>(dsc_txt)->setValue(getString(dsc_txt + feature));
+ std::string feature = "_" + getKey().asString();
+ if (hasString(title_txt + feature))
+ {
+ getChild<LLUICtrl>(title_txt)->setValue(getString(title_txt + feature));
+ getChild<LLUICtrl>(dsc_txt)->setValue(getString(dsc_txt + feature));
+ }
+ else
+ {
+ // Show blank
+ LL_WARNS() << "Feature \"" << getKey().asString() << "\" not found for feature notification" << LL_ENDL;
+ }
+ }
+ else
+ {
+ // Show blank
+ LL_WARNS() << "Feature notification without a feature" << LL_ENDL;
+ }
if (getKey().asString() == "gltf")
{