diff options
author | Jacek Antonelli | 2010-01-26 13:02:07 -0600 |
---|---|---|
committer | Jacek Antonelli | 2010-01-26 14:25:07 -0600 |
commit | 6e1e243da8c06ddd6847576c55e134d72ef42491 (patch) | |
tree | 3cd1bfbd60d3b92323717afda3fa5a821cf4066c /linden/indra/llui/llcombobox.cpp | |
parent | ChangeLog entry: Several changes to work better on 64bit Linux. (diff) | |
parent | SNOW-413 Potential null pointer exception in multi-slider control (diff) | |
download | meta-impy-6e1e243da8c06ddd6847576c55e134d72ef42491.zip meta-impy-6e1e243da8c06ddd6847576c55e134d72ef42491.tar.gz meta-impy-6e1e243da8c06ddd6847576c55e134d72ef42491.tar.bz2 meta-impy-6e1e243da8c06ddd6847576c55e134d72ef42491.tar.xz |
Merged bug fixes by Mm Alder and Admiral Admiral.
Diffstat (limited to 'linden/indra/llui/llcombobox.cpp')
-rw-r--r-- | linden/indra/llui/llcombobox.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/linden/indra/llui/llcombobox.cpp b/linden/indra/llui/llcombobox.cpp index cbc67fe..ce75f03 100644 --- a/linden/indra/llui/llcombobox.cpp +++ b/linden/indra/llui/llcombobox.cpp | |||
@@ -120,6 +120,8 @@ LLXMLNodePtr LLComboBox::getXML(bool save_children) const | |||
120 | { | 120 | { |
121 | LLXMLNodePtr node = LLUICtrl::getXML(); | 121 | LLXMLNodePtr node = LLUICtrl::getXML(); |
122 | 122 | ||
123 | node->setName(LL_COMBO_BOX_TAG); | ||
124 | |||
123 | // Attributes | 125 | // Attributes |
124 | 126 | ||
125 | node->createChild("allow_text_entry", TRUE)->setBoolValue(mAllowTextEntry); | 127 | node->createChild("allow_text_entry", TRUE)->setBoolValue(mAllowTextEntry); |
@@ -1172,6 +1174,33 @@ LLFlyoutButton::LLFlyoutButton( | |||
1172 | updateLayout(); | 1174 | updateLayout(); |
1173 | } | 1175 | } |
1174 | 1176 | ||
1177 | // virtual | ||
1178 | LLXMLNodePtr LLFlyoutButton::getXML(bool save_children) const | ||
1179 | { | ||
1180 | LLXMLNodePtr node = LLComboBox::getXML(); | ||
1181 | |||
1182 | node->setName(LL_FLYOUT_BUTTON_TAG); | ||
1183 | |||
1184 | LLXMLNodePtr child; | ||
1185 | |||
1186 | for (child = node->getFirstChild(); child.notNull();) | ||
1187 | { | ||
1188 | if (child->hasName("combo_item")) | ||
1189 | { | ||
1190 | child->setName(LL_FLYOUT_BUTTON_ITEM_TAG); | ||
1191 | |||
1192 | //setName does a delete and add, so we have to start over | ||
1193 | child = node->getFirstChild(); | ||
1194 | } | ||
1195 | else | ||
1196 | { | ||
1197 | child = child->getNextSibling(); | ||
1198 | } | ||
1199 | } | ||
1200 | |||
1201 | return node; | ||
1202 | } | ||
1203 | |||
1175 | //static | 1204 | //static |
1176 | LLView* LLFlyoutButton::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) | 1205 | LLView* LLFlyoutButton::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) |
1177 | { | 1206 | { |