EXT-8697 FIXED Disabled "Cut" context menu item for folders in 'My Landmarks'.

Reviewed by Vadim Savchuk at https://codereview.productengine.com/secondlife/r/867/.

--HG--
branch : product-engine
meow-7.2.2
Sergei Litovchuk 2010-08-19 16:16:10 +03:00
parent a1e401c626
commit 1fe7dd2fd7
1 changed files with 2 additions and 1 deletions

View File

@ -1120,7 +1120,8 @@ bool LLLandmarksPanel::canSelectedBeModified(const std::string& command_name) co
if ("cut" == command_name)
{
can_be_modified = root_folder->canCut();
// "Cut" disabled for folders. See EXT-8697.
can_be_modified = root_folder->canCut() && listenerp->getInventoryType() != LLInventoryType::IT_CATEGORY;
}
else if ("rename" == command_name)
{