summaryrefslogtreecommitdiff
path: root/indra/newview/llinventoryitemslist.cpp
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-08-24 18:44:39 +0100
committerTofu Linden <tofu.linden@lindenlab.com>2010-08-24 18:44:39 +0100
commit98cc2365034a93c69704daa69efb389799cc9627 (patch)
tree4c3ec75b78a26a736f18a2153af025040ae05a4b /indra/newview/llinventoryitemslist.cpp
parent6ba23344c95157793af9e4154933ae8df61630e8 (diff)
Backed out changeset a62bf7c0af21
Backing out this merge that I pushed (prematurely) to the wrong place.
Diffstat (limited to 'indra/newview/llinventoryitemslist.cpp')
-rw-r--r--indra/newview/llinventoryitemslist.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/indra/newview/llinventoryitemslist.cpp b/indra/newview/llinventoryitemslist.cpp
index 348d7ebcec..2b81ba8a12 100644
--- a/indra/newview/llinventoryitemslist.cpp
+++ b/indra/newview/llinventoryitemslist.cpp
@@ -80,37 +80,6 @@ boost::signals2::connection LLInventoryItemsList::setRefreshCompleteCallback(con
return mRefreshCompleteSignal.connect(cb);
}
-bool LLInventoryItemsList::selectItemByValue(const LLSD& value, bool select)
-{
- if (!LLFlatListView::selectItemByValue(value, select) && !value.isUndefined())
- {
- mSelectTheseIDs.push_back(value);
- return false;
- }
- return true;
-}
-
-void LLInventoryItemsList::updateSelection()
-{
- if(mSelectTheseIDs.empty()) return;
-
- std::vector<LLSD> cur;
- getValues(cur);
-
- for(std::vector<LLSD>::const_iterator cur_id_it = cur.begin(); cur_id_it != cur.end() && !mSelectTheseIDs.empty(); ++cur_id_it)
- {
- uuid_vec_t::iterator select_ids_it = std::find(mSelectTheseIDs.begin(), mSelectTheseIDs.end(), *cur_id_it);
- if(select_ids_it != mSelectTheseIDs.end())
- {
- selectItemByUUID(*select_ids_it);
- mSelectTheseIDs.erase(select_ids_it);
- }
- }
-
- scrollToShowFirstSelectedItem();
- mSelectTheseIDs.clear();
-}
-
void LLInventoryItemsList::doIdle()
{
if (!mNeedsRefresh) return;
@@ -179,12 +148,6 @@ void LLInventoryItemsList::refresh()
bool needs_refresh = add_limit_exceeded;
setNeedsRefresh(needs_refresh);
setForceRefresh(needs_refresh);
-
- // After list building completed, select items that had been requested to select before list was build
- if(!needs_refresh)
- {
- updateSelection();
- }
}
void LLInventoryItemsList::computeDifference(