Open groups tab on search if searching for groups instead of presumed failed websearch
parent
4d580821a4
commit
b0a406dbd3
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue