Fixed EXT-3348 "State of all folders (expanded/collapsed) in "My Landmarks" tab isn't saved after switching to "Teleport History" tab and back"

- Disabled restoring folder state when empty filter is not changed.

--HG--
branch : product-engine
master
Sergei Litovchuk 2009-12-23 18:55:35 +02:00
parent 75f6bdb469
commit 798ba45606
1 changed files with 1 additions and 2 deletions

View File

@ -985,7 +985,7 @@ void LLLandmarksPanel::doCreatePick(LLLandmark* landmark)
static void filter_list(LLInventorySubTreePanel* inventory_list, const std::string& string)
{
// When search is cleared, restore the old folder state.
if (string == "")
if (!inventory_list->getRootFolder()->getFilterSubString().empty() && string == "")
{
inventory_list->setFilterSubString(LLStringUtil::null);
// Re-open folders that were open before
@ -1010,7 +1010,6 @@ static void filter_list(LLInventorySubTreePanel* inventory_list, const std::stri
// Set new filter string
inventory_list->setFilterSubString(string);
}
static bool category_has_descendents(LLInventorySubTreePanel* inventory_list)