Skip to content
Snippets Groups Projects
Commit a3c22749 authored by Andrey Kleshchev's avatar Andrey Kleshchev
Browse files

SL-16390 The "Create classified" link does not open floater for classified creation

parent 993ac3b9
No related branches found
No related tags found
1 merge request!83Merge Linden 6.6.7
...@@ -136,13 +136,11 @@ class LLPickHandler : public LLCommandHandler, ...@@ -136,13 +136,11 @@ class LLPickHandler : public LLCommandHandler,
void createPick() void createPick()
{ {
// open the new pick panel on the Picks floater // open the new pick panel on the Picks floater
LLFloater* picks_floater = LLFloaterReg::showInstance("picks"); LLSD params;
params["open_tab_name"] = "panel_picks";
params["show_tab_panel"] = "create_classified";
LLPanelPicks* picks = picks_floater->findChild<LLPanelPicks>("panel_picks"); LLFloaterSidePanelContainer::showPanel("picks", params);
if (picks)
{
picks->createNewPick();
}
} }
void editPick(LLPickData* pick_info) void editPick(LLPickData* pick_info)
...@@ -261,13 +259,11 @@ class LLClassifiedHandler : ...@@ -261,13 +259,11 @@ class LLClassifiedHandler :
void createClassified() void createClassified()
{ {
// open the new classified panel on the Picks floater // open the new classified panel on the Picks floater
LLFloater* picks_floater = LLFloaterReg::showInstance("picks"); LLSD params;
params["open_tab_name"] = "panel_picks";
params["show_tab_panel"] = "create_pick";
LLPanelPicks* picks = picks_floater->findChild<LLPanelPicks>("panel_picks"); LLFloaterSidePanelContainer::showPanel("picks", params);
if (picks)
{
picks->createNewClassified();
}
} }
void openClassified(LLAvatarClassifiedInfo* c_info) void openClassified(LLAvatarClassifiedInfo* c_info)
......
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