diff options
| author | Richard Linden <none@none> | 2010-09-16 19:45:57 -0700 | 
|---|---|---|
| committer | Richard Linden <none@none> | 2010-09-16 19:45:57 -0700 | 
| commit | 1911993cc7761216c70b95e77b49da383c9e162d (patch) | |
| tree | 23ec59769bcaf192324e48141c94affe0ebf2ea0 /indra/newview/llfloatergroups.cpp | |
| parent | 30c8979e157a4503509360f0c70d609eb97d6db9 (diff) | |
| parent | 83c01b041d5b6527b3741b73d075afc4b7ad134c (diff) | |
merge
Diffstat (limited to 'indra/newview/llfloatergroups.cpp')
| -rw-r--r-- | indra/newview/llfloatergroups.cpp | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/indra/newview/llfloatergroups.cpp b/indra/newview/llfloatergroups.cpp index 3cd2154531..234a09d157 100644 --- a/indra/newview/llfloatergroups.cpp +++ b/indra/newview/llfloatergroups.cpp @@ -338,11 +338,10 @@ void LLPanelGroups::onGroupList(LLUICtrl* ctrl, void* userdata)  	if(self) self->enableButtons();  } -void init_group_list(LLScrollListCtrl* ctrl, const LLUUID& highlight_id, U64 powers_mask) +void init_group_list(LLScrollListCtrl* group_list, const LLUUID& highlight_id, U64 powers_mask)  {  	S32 count = gAgent.mGroups.count();  	LLUUID id; -	LLCtrlListInterface *group_list = ctrl->getListInterface();  	if (!group_list) return;  	group_list->operateOnAll(LLCtrlListInterface::OP_DELETE); @@ -366,10 +365,12 @@ void init_group_list(LLScrollListCtrl* ctrl, const LLUUID& highlight_id, U64 pow  			element["columns"][0]["font"]["name"] = "SANSSERIF";  			element["columns"][0]["font"]["style"] = style; -			group_list->addElement(element, ADD_SORTED); +			group_list->addElement(element);  		}  	} +	group_list->sortOnce(0, TRUE); +  	// add "none" to list at top  	{  		std::string style = "NORMAL"; | 
