From bcabe07958c3f7dde2aa30962126c9ba9d7b95bd Mon Sep 17 00:00:00 2001 From: Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> Date: Fri, 19 Jun 2026 22:32:20 +0300 Subject: #5837 Fix mature group search showing zero results --- indra/newview/llpaneldirgroups.cpp | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'indra/newview/llpaneldirgroups.cpp') diff --git a/indra/newview/llpaneldirgroups.cpp b/indra/newview/llpaneldirgroups.cpp index 992d92091c..3ab02eb16e 100644 --- a/indra/newview/llpaneldirgroups.cpp +++ b/indra/newview/llpaneldirgroups.cpp @@ -51,6 +51,12 @@ bool LLPanelDirGroups::postBuild() childSetAction("Search", &LLPanelDirBrowser::onClickSearchCore, this); setDefaultBtn( "Search" ); + if (gAgent.isTeen()) + { + childSetEnabled("incmature", false); + gSavedSettings.setBOOL("ShowMatureGroups", false); + } + return true; } @@ -70,13 +76,18 @@ void LLPanelDirGroups::performQuery() // groups U32 scope = DFQ_GROUPS; + // if nothing is set will search for <= mature + // if DFQ_INC_PG is set, will look for <= PG + // if DFQ_INC_MATURE is set, will look for == mature + // if DFQ_INC_ADULT is set, will look for >= adult + scope |= DFQ_INC_PG; // Check group mature filter. - if ( !gSavedSettings.getBOOL("ShowMatureGroups") || gAgent.isTeen() ) + if ( gSavedSettings.getBOOL("ShowMatureGroups") && !gAgent.isTeen() ) { - scope |= DFQ_FILTER_MATURE; + scope |= DFQ_INC_MATURE; + scope |= DFQ_INC_ADULT; } - mCurrentSortColumn = "score"; mCurrentSortAscending = false; -- cgit v1.3