summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorTofu Linden <tofu.linden@lindenlab.com>2010-08-10 16:31:07 +0100
committerTofu Linden <tofu.linden@lindenlab.com>2010-08-10 16:31:07 +0100
commit2779d28848f1b305fe5f4810c2c29d2446bd9160 (patch)
tree969b900473d6836d0cae02a930e63f4895e19331 /indra/newview
parente62e31a2f2e1b1a33cc979f5e47e303a1a9eae05 (diff)
parentf88890afe5fa45e25f196a2546620102935887aa (diff)
merge from PE's viewer-trunk
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llfolderview.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/newview/llfolderview.cpp b/indra/newview/llfolderview.cpp
index 49d80a0249..e8891d1cc5 100644
--- a/indra/newview/llfolderview.cpp
+++ b/indra/newview/llfolderview.cpp
@@ -561,9 +561,7 @@ void LLFolderView::addToSelectionList(LLFolderViewItem* item)
void LLFolderView::removeFromSelectionList(LLFolderViewItem* item)
{
- // If items are filtered while background fetch is in progress
- // scrollbar resets to the first filtered item. See EXT-3981.
- if (!LLInventoryModelBackgroundFetch::instance().backgroundFetchActive() && mSelectedItems.size())
+ if (mSelectedItems.size())
{
mSelectedItems.back()->setIsCurSelection(FALSE);
}
@@ -1981,7 +1979,9 @@ void LLFolderView::deleteAllChildren()
void LLFolderView::scrollToShowSelection()
{
- if (mSelectedItems.size())
+ // If items are filtered while background fetch is in progress
+ // scrollbar resets to the first filtered item. See EXT-3981.
+ if (!LLInventoryModelBackgroundFetch::instance().backgroundFetchActive() && mSelectedItems.size())
{
mNeedsScroll = TRUE;
}