summaryrefslogtreecommitdiff
path: root/indra/newview/llnamelistctrl.cpp
diff options
context:
space:
mode:
authorKelly Washington <kelly@lindenlab.com>2012-06-25 13:41:53 -0700
committerKelly Washington <kelly@lindenlab.com>2012-06-25 13:41:53 -0700
commit0ee53b21d2a7bf2cd37c7bcdc2a86e0f079fbefc (patch)
tree6ea0a8123b3d26d52f22e2a5b9357943cf88e2cd /indra/newview/llnamelistctrl.cpp
parent90547ff411db177bf6424ca553449a81a808fc0f (diff)
MAINT-30 Estate access lists for groups and residents are blank when "Allow public access" is checked.
MAINT-1200 Resident names not sorted in About Land (or Estate management) floater's allowed/banned boxes reviewed with Simon
Diffstat (limited to 'indra/newview/llnamelistctrl.cpp')
-rw-r--r--indra/newview/llnamelistctrl.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llnamelistctrl.cpp b/indra/newview/llnamelistctrl.cpp
index 4e28d1f526..11b057eb0d 100644
--- a/indra/newview/llnamelistctrl.cpp
+++ b/indra/newview/llnamelistctrl.cpp
@@ -401,7 +401,7 @@ void LLNameListCtrl::onAvatarNameCache(const LLUUID& agent_id,
name = av_name.getCompleteName();
item_list::iterator iter;
- for (iter = getItemList().begin(); iter != getItemList().end(); iter++)
+ for (iter = getItemList().begin(); iter != getItemList().end(); ++iter)
{
LLScrollListItem* item = *iter;
if (item->getUUID() == agent_id)
@@ -410,6 +410,7 @@ void LLNameListCtrl::onAvatarNameCache(const LLUUID& agent_id,
if (cell)
{
cell->setValue(name);
+ setNeedsSort();
}
}
}
@@ -431,3 +432,8 @@ void LLNameListCtrl::updateColumns()
}
}
}
+
+void LLNameListCtrl::sortByName(BOOL ascending)
+{
+ sortByColumnIndex(mNameColumnIndex,ascending);
+}