aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llradiogroup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui/llradiogroup.cpp')
-rw-r--r--linden/indra/llui/llradiogroup.cpp17
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
519LLXMLNodePtr 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}