summaryrefslogtreecommitdiff
path: root/indra/llui/lluictrlfactory.h
diff options
context:
space:
mode:
authorRichard Nelson <richard@lindenlab.com>2009-10-06 20:03:04 +0000
committerRichard Nelson <richard@lindenlab.com>2009-10-06 20:03:04 +0000
commitebdbdc42f801bc26f3f80252d7ea36e9bfd29d51 (patch)
tree57e846855ff23c566ddb47e81aa10506d8a112bf /indra/llui/lluictrlfactory.h
parent0e9968387ca1a787fccbff38c663ad09ed307b86 (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.h7
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);