summaryrefslogtreecommitdiff
path: root/indra/newview/llpaneldirland.cpp
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2025-10-23 19:05:18 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2025-10-23 19:05:18 +0300
commitb44074c1b33883337c7371f802a51ee2ae50f89a (patch)
treeb9c0296551ee19861c64a28779efa770af2695bd /indra/newview/llpaneldirland.cpp
parentb0c975724510b2685fc08cee060da670361c93c9 (diff)
#4411 fix additional search options - category and maturity
Diffstat (limited to 'indra/newview/llpaneldirland.cpp')
-rw-r--r--indra/newview/llpaneldirland.cpp23
1 files changed, 4 insertions, 19 deletions
diff --git a/indra/newview/llpaneldirland.cpp b/indra/newview/llpaneldirland.cpp
index cce0e4656c..ae1dfae092 100644
--- a/indra/newview/llpaneldirland.cpp
+++ b/indra/newview/llpaneldirland.cpp
@@ -34,21 +34,14 @@
#include "llpaneldirland.h"
-// linden library includes
-#include "llfontgl.h"
-#include "llparcel.h"
-#include "llqueryflags.h"
-#include "message.h"
-
-// viewer project includes
#include "llagent.h"
#include "llcheckboxctrl.h"
#include "llcombobox.h"
#include "lllineeditor.h"
#include "llnotificationsutil.h"
+#include "llqueryflags.h"
#include "llscrolllistctrl.h"
#include "llstatusbar.h"
-#include "lluiconstants.h"
#include "lltextbox.h"
#include "llviewercontrol.h"
#include "llviewermessage.h"
@@ -124,14 +117,6 @@ LLPanelDirLand::~LLPanelDirLand()
// Children all cleaned up by default view destructor.
}
-// virtual
-void LLPanelDirLand::draw()
-{
- updateMaturityCheckbox();
-
- LLPanelDirBrowser::draw();
-}
-
void LLPanelDirLand::onClickSort()
{
performQuery();
@@ -159,9 +144,9 @@ void LLPanelDirLand::onCommitArea(LLUICtrl* ctrl, void* data)
void LLPanelDirLand::performQuery()
{
- BOOL inc_pg = childGetValue("incpg").asBoolean();
- BOOL inc_mature = childGetValue("incmature").asBoolean();
- BOOL inc_adult = childGetValue("incadult").asBoolean();
+ static LLUICachedControl<bool> inc_pg("ShowPGLand", true);
+ static LLUICachedControl<bool> inc_mature("ShowMatureLand", false);
+ static LLUICachedControl<bool> inc_adult("ShowAdultLand", false);
if (!(inc_pg || inc_mature || inc_adult))
{
LLNotificationsUtil::add("NoContentToSearch");