Open groups tab on search if searching for groups instead of presumed failed websearch

Ansariel 2014-01-21 16:06:16 +01:00
parent 4d580821a4
commit b0a406dbd3
2 changed files with 10 additions and 1 deletions

View File

@ -279,7 +279,13 @@ void FSFloaterSearch::onOpen(const LLSD& key)
Params p(key);
mPanelWeb->loadURL(p.search);
if (key.has("query"))
{
mTabContainer->selectTabPanel(mPanelWeb);
}
else if (key.has("tab") && key["tab"].asString() == "groups")
{
mTabContainer->selectTabPanel(mPanelGroups);
}
}
//virtual

View File

@ -217,7 +217,10 @@ LLFetchLeaveGroupData* gFetchLeaveGroupData = NULL;
// static
void LLGroupActions::search()
{
LLFloaterReg::showInstance("search", LLSD().with("category", "groups"));
// <FS:Ansariel> Open groups search panel instead of invoking presumed failed websearch
//LLFloaterReg::showInstance("search", LLSD().with("category", "groups"));
LLFloaterReg::showInstance("search", LLSD().with("tab", "groups"));
// </FS:Ansariel>
}
// static