summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Litovchuk <slitovchuk@productengine.com>2010-02-25 22:49:37 +0200
committerSergei Litovchuk <slitovchuk@productengine.com>2010-02-25 22:49:37 +0200
commita3e549639130eec752d99db767eb1992cc3a0661 (patch)
treea8663d27514020b251e8f10ec9ccb2fb8eb0772e
parent272c42d7cfc88026d5326943845fd3a2cef68e25 (diff)
Fixed normal bug (EXT-5729) My Landmarks search doesn't auto expand folders of found terms.
--HG-- branch : product-engine
-rw-r--r--indra/newview/llfolderview.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/newview/llfolderview.cpp b/indra/newview/llfolderview.cpp
index 7d527fa98a..e50753c1c5 100644
--- a/indra/newview/llfolderview.cpp
+++ b/indra/newview/llfolderview.cpp
@@ -2163,6 +2163,15 @@ void LLFolderView::doIdle()
LLSelectFirstFilteredItem filter;
applyFunctorRecursively(filter);
}
+
+ // Open filtered folders for folder views with mAutoSelectOverride=TRUE.
+ // Used by LLPlacesFolderView.
+ if (mAutoSelectOverride && mFilter->getFilterSubString() != "")
+ {
+ LLOpenFilteredFolders filter;
+ applyFunctorRecursively(filter);
+ }
+
scrollToShowSelection();
}