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

SL-14797 Do not allow creation of landmarks nor folders in library

parent d12514af
No related branches found
No related tags found
No related merge requests found
......@@ -1044,8 +1044,12 @@ bool LLLandmarksPanel::isActionEnabled(const LLSD& userdata) const
// ... but except Received folder
return !isReceivedFolderSelected();
}
if (mCurrentSelectedList == mLibraryInventoryPanel)
{
return false;
}
//"Add a folder" is enabled by default (case when My Landmarks is empty)
else return true;
return true;
}
else if("create_pick" == command_name)
{
......@@ -1066,6 +1070,10 @@ bool LLLandmarksPanel::isActionEnabled(const LLSD& userdata) const
{
return false;
}
if (mCurrentSelectedList == mLibraryInventoryPanel)
{
return false;
}
LLFolderViewModelItemInventory* view_model = getCurSelectedViewModelItem();
if (!view_model || view_model->getInventoryType() != LLInventoryType::IT_CATEGORY)
{
......
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