diff options
| author | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-06-22 19:20:43 +0300 |
|---|---|---|
| committer | Andrey Kleshchev <117672381+akleshchev@users.noreply.github.com> | 2026-06-22 21:36:22 +0300 |
| commit | 22b694d4bdaa162707582cc5665f5d8d0c4a7e0a (patch) | |
| tree | ceeea52119326ed8c89f155e71f707aad57a4a7a /indra/newview/llpaneldirgroups.cpp | |
| parent | 6d9293fe7393be0f17836c7e5512e8a2d8bb53f4 (diff) | |
#5837 Fix mature group search showing zero results #2
Diffstat (limited to 'indra/newview/llpaneldirgroups.cpp')
| -rw-r--r-- | indra/newview/llpaneldirgroups.cpp | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/indra/newview/llpaneldirgroups.cpp b/indra/newview/llpaneldirgroups.cpp index 3ab02eb16e..324d84efde 100644 --- a/indra/newview/llpaneldirgroups.cpp +++ b/indra/newview/llpaneldirgroups.cpp @@ -76,18 +76,27 @@ 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() ) { + // Supposed behavior: + // 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 + // Not compatible with legacy DFQ_FILTER_MATURE. + // But there appears to be a server bug, so we only use + // this to show all and use legacy setting for 'pg only' + scope |= DFQ_INC_PG; scope |= DFQ_INC_MATURE; scope |= DFQ_INC_ADULT; } + else + { + // DFQ_FILTER_MATURE is a legacy setting + scope |= DFQ_FILTER_MATURE; + } mCurrentSortColumn = "score"; mCurrentSortAscending = false; |
