summaryrefslogtreecommitdiff
path: root/indra/newview/llpaneldirevents.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-01-21 13:29:05 +0800
committerErik Kundiman <erik@megapahit.org>2026-01-21 13:29:05 +0800
commit71577cea319238b54b283a25ee9270e10f11a0bc (patch)
tree8b26dee2fb5f56925c1dbd0c0e09be104677c46d /indra/newview/llpaneldirevents.cpp
parentf301d1c4afa30b3a2845ea9b92a6ed0561e58b78 (diff)
parentca6601cbb8d4ef9828466c8d1316ae28d0c7b7b8 (diff)
Merge tag 'Second_Life_Release#ca6601cb-2026.01' into 2026.012026.01
Diffstat (limited to 'indra/newview/llpaneldirevents.cpp')
-rw-r--r--indra/newview/llpaneldirevents.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/indra/newview/llpaneldirevents.cpp b/indra/newview/llpaneldirevents.cpp
index 227ed877cd..7ac1229637 100644
--- a/indra/newview/llpaneldirevents.cpp
+++ b/indra/newview/llpaneldirevents.cpp
@@ -143,18 +143,17 @@ void LLPanelDirEvents::performQueryOrDelete(U32 event_id)
static LLUICachedControl<bool> incpg("ShowPGEvents", true);
static LLUICachedControl<bool> incmature("ShowMatureEvents", false);
static LLUICachedControl<bool> incadult("ShowAdultEvents", false);
+ if (!(incpg || incmature || incadult))
+ {
+ LLNotificationsUtil::add("NoContentToSearch");
+ return;
+ }
U32 scope = DFQ_DATE_EVENTS;
if (incpg) scope |= DFQ_INC_PG;
if (incmature && gAgent.canAccessMature()) scope |= DFQ_INC_MATURE;
if (incadult && gAgent.canAccessAdult()) scope |= DFQ_INC_ADULT;
- if ( !( scope & (DFQ_INC_PG | DFQ_INC_MATURE | DFQ_INC_ADULT )))
- {
- LLNotificationsUtil::add("NoContentToSearch");
- return;
- }
-
setupNewSearch();
std::ostringstream params;