summaryrefslogtreecommitdiff
path: root/indra/newview/llpaneldirplaces.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <118752495+marchcat@users.noreply.github.com>2026-03-13 18:46:24 +0200
committerGitHub <noreply@github.com>2026-03-13 18:46:24 +0200
commit5ffcdc3c9c3b33e04dbaa7397fc73d53857acd5b (patch)
treee43e071daaa9f41a4d8e440d136e6e42b634db6e /indra/newview/llpaneldirplaces.cpp
parent28958ab7ae368d53b21888d178a9eb04ac6d82d2 (diff)
parent419f94f9a975fb117facb94534509c9e83727549 (diff)
Merge pull request #5539 from secondlife/marchcat/slua-26.1-webrtc
26.1 -> SLua PV merge
Diffstat (limited to 'indra/newview/llpaneldirplaces.cpp')
-rw-r--r--indra/newview/llpaneldirplaces.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/indra/newview/llpaneldirplaces.cpp b/indra/newview/llpaneldirplaces.cpp
index 2d54566038..3501baf697 100644
--- a/indra/newview/llpaneldirplaces.cpp
+++ b/indra/newview/llpaneldirplaces.cpp
@@ -121,6 +121,11 @@ void LLPanelDirPlaces::performQuery()
static LLUICachedControl<bool> inc_pg("ShowPGSims", true);
static LLUICachedControl<bool> inc_mature("ShowMatureSims", false);
static LLUICachedControl<bool> inc_adult("ShowAdultSims", false);
+ if (!(inc_pg || inc_mature || inc_adult))
+ {
+ LLNotificationsUtil::add("NoContentToSearch");
+ return;
+ }
if (inc_pg)
{
@@ -137,12 +142,6 @@ void LLPanelDirPlaces::performQuery()
flags |= DFQ_INC_ADULT;
}
- if (0x0 == flags)
- {
- LLNotificationsUtil::add("NoContentToSearch");
- return;
- }
-
queryCore(query_string, category, flags);
}