Skip to content
Snippets Groups Projects
Commit 34ab8e11 authored by Lynx Linden's avatar Lynx Linden
Browse files
parents 2fd31363 a3017978
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include "llmediactrl.h" #include "llmediactrl.h"
#include "lllogininstance.h" #include "lllogininstance.h"
#include "lluri.h" #include "lluri.h"
#include "llagent.h"
LLFloaterSearch::LLFloaterSearch(const LLSD& key) : LLFloaterSearch::LLFloaterSearch(const LLSD& key) :
LLFloater(key), LLFloater(key),
...@@ -122,6 +123,12 @@ void LLFloaterSearch::search(const LLSD &key) ...@@ -122,6 +123,12 @@ void LLFloaterSearch::search(const LLSD &key)
LLSD search_token = LLLoginInstance::getInstance()->getResponse("search_token"); LLSD search_token = LLLoginInstance::getInstance()->getResponse("search_token");
url += "&p=" + search_token.asString(); url += "&p=" + search_token.asString();
// also append the user's preferred maturity (can be changed via prefs)
std::string maturity = "pg";
if (gAgent.prefersMature()) maturity += ",mature";
if (gAgent.prefersAdult()) maturity += ",adult";
url += "&r=" + maturity;
// and load the URL in the web view // and load the URL in the web view
mBrowser->navigateTo(url); mBrowser->navigateTo(url);
} }
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<floater <floater
legacy_header_height="18" legacy_header_height="18"
can_resize="true" can_resize="true"
height="400" height="512"
layout="topleft" layout="topleft"
min_height="140" min_height="140"
min_width="467" min_width="467"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment