Fix for friends list not resorting upon avatar online status change. Also did some minor cleanup

This commit is contained in:
Shyotl
2012-12-09 17:05:54 -06:00
parent 8a7cc9259c
commit a4591a5eaa
2 changed files with 62 additions and 30 deletions

View File

@@ -642,6 +642,18 @@ public:
// manually call this whenever editing list items in place to flag need for resorting
void setNeedsSort(bool val = true) { mSorted = !val; }
void setNeedsSortColumn(S32 col)
{
if(!isSorted())return;
for(std::vector<std::pair<S32, BOOL> >::iterator it=mSortColumns.begin();it!=mSortColumns.end();++it)
{
if((*it).first == col)
{
setNeedsSort();
break;
}
}
}
void dirtyColumns(); // some operation has potentially affected column layout or ordering
boost::signals2::connection setSortCallback(sort_signal_t::slot_type cb )