From e9ca4489c26ac80d19efbf075dcf270fe92973f5 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Sat, 9 Dec 2017 22:42:44 +0100 Subject: [PATCH] Improve fix for hidden empty system folders unhiding when using "Find all links": Save filter settings and restore them when changing (clearing) the search box text --- indra/newview/llinventoryfilter.cpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/indra/newview/llinventoryfilter.cpp b/indra/newview/llinventoryfilter.cpp index ffc7b5cee3..4c053e9c14 100644 --- a/indra/newview/llinventoryfilter.cpp +++ b/indra/newview/llinventoryfilter.cpp @@ -864,17 +864,10 @@ void LLInventoryFilter::setFilterSubString(const std::string& string) // Cancel out UUID once the search string is modified if (mFilterOps.mFilterTypes == FILTERTYPE_UUID) { - mFilterOps.mFilterTypes &= ~FILTERTYPE_UUID; - mFilterOps.mFilterUUID = LLUUID::null; // Find all links unhiding hidden empty system folders - if (gSavedSettings.getBOOL("DebugHideEmptySystemFolders")) - { - setFilterEmptySystemFolders(); - } - else - { - removeFilterEmptySystemFolders(); - } + //mFilterOps.mFilterTypes &= ~FILTERTYPE_UUID; + //mFilterOps.mFilterUUID = LLUUID::null; + mFilterOps = mBackupFilterOps; // setModified(FILTER_RESTART); } @@ -1098,7 +1091,7 @@ void LLInventoryFilter::setFindAllLinksMode(const std::string &search_name, cons { // Save a copy of settings so that we will be able to restore it later // but make sure we are not searching for links already - if(mFilterOps.mFilterLinks != FILTERLINK_ONLY_LINKS) + //if(mFilterOps.mFilterLinks != FILTERLINK_ONLY_LINKS) // Find all links unhiding hidden empty system folders { mBackupFilterOps = mFilterOps; }