diff options
| author | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-06-19 22:32:20 +0300 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-06-21 15:32:56 +0300 |
| commit | bcabe07958c3f7dde2aa30962126c9ba9d7b95bd (patch) | |
| tree | 029745d8ee48860a555309bb564d78c47d761418 /indra/newview/llpaneldirgroups.cpp | |
| parent | 2c591b1429f44795aceebd5c6f5ea6907b2a08ea (diff) | |
#5837 Fix mature group search showing zero results
Diffstat (limited to 'indra/newview/llpaneldirgroups.cpp')
| -rw-r--r-- | indra/newview/llpaneldirgroups.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
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; |
