diff options
author | Mm Alder | 2010-01-03 14:40:37 -0500 |
---|---|---|
committer | Mm Alder | 2010-01-03 14:40:37 -0500 |
commit | c17d74a59f10ad1fb9f9a7da2811688ff2944afa (patch) | |
tree | 156166a6ab955287780bb60c21238df5876b6e73 /linden/indra/llui/llradiogroup.cpp | |
parent | VWR-14475 Load from XML is broken (diff) | |
download | meta-impy-c17d74a59f10ad1fb9f9a7da2811688ff2944afa.zip meta-impy-c17d74a59f10ad1fb9f9a7da2811688ff2944afa.tar.gz meta-impy-c17d74a59f10ad1fb9f9a7da2811688ff2944afa.tar.bz2 meta-impy-c17d74a59f10ad1fb9f9a7da2811688ff2944afa.tar.xz |
VWR-15310 Save to XML doesn't set proper XML tags
Diffstat (limited to 'linden/indra/llui/llradiogroup.cpp')
-rw-r--r-- | linden/indra/llui/llradiogroup.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/linden/indra/llui/llradiogroup.cpp b/linden/indra/llui/llradiogroup.cpp index 33b9398..ad8922d 100644 --- a/linden/indra/llui/llradiogroup.cpp +++ b/linden/indra/llui/llradiogroup.cpp | |||
@@ -345,6 +345,8 @@ LLXMLNodePtr LLRadioGroup::getXML(bool save_children) const | |||
345 | { | 345 | { |
346 | LLXMLNodePtr node = LLUICtrl::getXML(); | 346 | LLXMLNodePtr node = LLUICtrl::getXML(); |
347 | 347 | ||
348 | node->setName(LL_RADIO_GROUP_TAG); | ||
349 | |||
348 | // Attributes | 350 | // Attributes |
349 | 351 | ||
350 | node->createChild("draw_border", TRUE)->setBoolValue(mHasBorder); | 352 | node->createChild("draw_border", TRUE)->setBoolValue(mHasBorder); |
@@ -356,9 +358,7 @@ LLXMLNodePtr LLRadioGroup::getXML(bool save_children) const | |||
356 | { | 358 | { |
357 | LLRadioCtrl* radio = *iter; | 359 | LLRadioCtrl* radio = *iter; |
358 | 360 | ||
359 | LLXMLNodePtr child_node = radio->LLView::getXML(); | 361 | LLXMLNodePtr child_node = radio->getXML(); |
360 | child_node->setStringValue(radio->getLabel()); | ||
361 | child_node->setName(std::string("radio_item")); | ||
362 | 362 | ||
363 | node->addChild(child_node); | 363 | node->addChild(child_node); |
364 | } | 364 | } |
@@ -515,3 +515,14 @@ void LLRadioCtrl::setValue(const LLSD& value) | |||
515 | mButton->setTabStop(value.asBoolean()); | 515 | mButton->setTabStop(value.asBoolean()); |
516 | } | 516 | } |
517 | 517 | ||
518 | // virtual | ||
519 | LLXMLNodePtr LLRadioCtrl::getXML(bool save_children) const | ||
520 | { | ||
521 | LLXMLNodePtr node = LLCheckBoxCtrl::getXML(); | ||
522 | |||
523 | node->setName(LL_RADIO_ITEM_TAG); | ||
524 | |||
525 | node->setStringValue(getLabel()); | ||
526 | |||
527 | return node; | ||
528 | } | ||