diff options
author | Richard Nelson <richard@lindenlab.com> | 2009-10-06 20:03:04 +0000 |
---|---|---|
committer | Richard Nelson <richard@lindenlab.com> | 2009-10-06 20:03:04 +0000 |
commit | ebdbdc42f801bc26f3f80252d7ea36e9bfd29d51 (patch) | |
tree | 57e846855ff23c566ddb47e81aa10506d8a112bf /indra/llui/lluictrlfactory.h | |
parent | 0e9968387ca1a787fccbff38c663ad09ed307b86 (diff) |
EXT-1013 - tab ordering is inconsistent in the preferences window
reviewed by James
Diffstat (limited to 'indra/llui/lluictrlfactory.h')
-rw-r--r-- | indra/llui/lluictrlfactory.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/indra/llui/lluictrlfactory.h b/indra/llui/lluictrlfactory.h index e47010c316..5a028702e7 100644 --- a/indra/llui/lluictrlfactory.h +++ b/indra/llui/lluictrlfactory.h @@ -295,8 +295,8 @@ fail: if (parent) { - S32 tab_group = params.tab_group.isProvided() ? params.tab_group() : -1; - setCtrlParent(widget, parent, tab_group); + S32 tab_group = params.tab_group.isProvided() ? params.tab_group() : parent->getLastTabGroup(); + parent->addChild(widget, tab_group); } typedef typename T::child_registry_t registry_t; @@ -321,9 +321,6 @@ fail: static void loadWidgetTemplate(const std::string& widget_tag, LLInitParam::BaseBlock& block); private: - //static void setCtrlValue(LLView* view, LLXMLNodePtr node); - static void setCtrlParent(LLView* view, LLView* parent, S32 tab_group); - // Avoid directly using LLUI and LLDir in the template code static std::string findSkinnedFilename(const std::string& filename); |