summaryrefslogtreecommitdiff
path: root/indra/newview/llpanellandmarks.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-02-05 20:31:22 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-02-05 21:24:04 +0200
commit74d3f9d017a424d69bfc256ecc1062fdaa3b18c3 (patch)
tree176da89d52fe677d7cb8922fbd6d72e47ed42354 /indra/newview/llpanellandmarks.cpp
parent99278b2f6259cd6e7b48dfbccb2528d428f83ec6 (diff)
SL-14797 Normalize right-click menus on Landmarks & Picks Part#2
Diffstat (limited to 'indra/newview/llpanellandmarks.cpp')
-rw-r--r--indra/newview/llpanellandmarks.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llpanellandmarks.cpp b/indra/newview/llpanellandmarks.cpp
index 578485c967..46c23961f4 100644
--- a/indra/newview/llpanellandmarks.cpp
+++ b/indra/newview/llpanellandmarks.cpp
@@ -785,7 +785,14 @@ void LLLandmarksPanel::onAddAction(const LLSD& userdata) const
}
else
{
- LLFloaterSidePanelContainer::showPanel("places", LLSD().with("type", "create_landmark"));
+ LLSD args;
+ args["type"] = "create_landmark";
+ if (view_model->getInventoryType()
+ == LLInventoryType::IT_CATEGORY)
+ {
+ args["dest_folder"] = view_model->getUUID();
+ }
+ LLFloaterSidePanelContainer::showPanel("places", args);
}
}
else if ("category" == command_name)