aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llpanelavatar.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llpanelavatar.cpp59
1 files changed, 31 insertions, 28 deletions
diff --git a/linden/indra/newview/llpanelavatar.cpp b/linden/indra/newview/llpanelavatar.cpp
index fd25775..9c73dad 100644
--- a/linden/indra/newview/llpanelavatar.cpp
+++ b/linden/indra/newview/llpanelavatar.cpp
@@ -1522,40 +1522,43 @@ void LLPanelAvatar::resetGroupList()
1522 { 1522 {
1523 return; 1523 return;
1524 } 1524 }
1525 LLScrollListCtrl* group_list = LLUICtrlFactory::getScrollListByName(mPanelSecondLife,"groups");
1526 1525
1527 if (mPanelSecondLife && group_list) 1526 if (mPanelSecondLife)
1528 { 1527 {
1529 group_list->deleteAllItems(); 1528 LLScrollListCtrl* group_list = LLUICtrlFactory::getScrollListByName(mPanelSecondLife,"groups");
1530 1529 if (group_list)
1531 S32 count = gAgent.mGroups.count();
1532 LLUUID id;
1533
1534 for(S32 i = 0; i < count; ++i)
1535 { 1530 {
1536 LLGroupData group_data = gAgent.mGroups.get(i); 1531 group_list->deleteAllItems();
1537 id = group_data.mID; 1532
1538 std::string group_string; 1533 S32 count = gAgent.mGroups.count();
1539 /* Show group title? DUMMY_POWER for Don Grep 1534 LLUUID id;
1540 if(group_data.mOfficer) 1535
1541 { 1536 for(S32 i = 0; i < count; ++i)
1542 group_string = "Officer of ";
1543 }
1544 else
1545 { 1537 {
1546 group_string = "Member of "; 1538 LLGroupData group_data = gAgent.mGroups.get(i);
1547 } 1539 id = group_data.mID;
1548 */ 1540 std::string group_string;
1541 /* Show group title? DUMMY_POWER for Don Grep
1542 if(group_data.mOfficer)
1543 {
1544 group_string = "Officer of ";
1545 }
1546 else
1547 {
1548 group_string = "Member of ";
1549 }
1550 */
1551
1552 group_string += group_data.mName;
1549 1553
1550 group_string += group_data.mName; 1554 LLSD row;
1551 1555 row["columns"][0]["value"] = group_string;
1552 LLSD row; 1556 row["columns"][0]["font"] = "SANSSERIF_SMALL";
1553 row["columns"][0]["value"] = group_string; 1557 row["columns"][0]["width"] = 0;
1554 row["columns"][0]["font"] = "SANSSERIF_SMALL"; 1558 group_list->addElement(row);
1555 row["columns"][0]["width"] = 0; 1559 }
1556 group_list->addElement(row); 1560 group_list->sortByColumn(0, TRUE);
1557 } 1561 }
1558 group_list->sortByColumn(0, TRUE);
1559 } 1562 }
1560} 1563}
1561 1564