summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-05-10 12:02:09 +0300
committerMaxim Nikolenko <maximnproductengine@lindenlab.com>2023-05-10 12:02:09 +0300
commit06f63d9b871458f71340ba7d0126bf964d17048f (patch)
tree2640715e0a864440702bb58774fc768570fe197c /indra/newview
parenteaf95d084a585c8a0a9ac086679487fa40e1db71 (diff)
SL-19683 'New folder' menu item should be disable for the listed folders in sfv
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llpanelmaininventory.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp
index 06b71d0f7a..4577c1defa 100644
--- a/indra/newview/llpanelmaininventory.cpp
+++ b/indra/newview/llpanelmaininventory.cpp
@@ -1498,7 +1498,6 @@ void LLPanelMainInventory::onAddButtonClick()
if (menu)
{
disableAddIfNeeded();
- menu->getChild<LLMenuItemGL>("New Folder")->setEnabled(!isRecentItemsPanelSelected());
setUploadCostIfNeeded();
@@ -2242,7 +2241,7 @@ void LLPanelMainInventory::disableAddIfNeeded()
{
bool enable = !mSingleFolderMode || is_add_allowed(getCurrentSFVRoot());
- menu->getChild<LLMenuItemGL>("New Folder")->setEnabled(enable);
+ menu->getChild<LLMenuItemGL>("New Folder")->setEnabled(enable && !isRecentItemsPanelSelected());
menu->getChild<LLMenuItemGL>("New Script")->setEnabled(enable);
menu->getChild<LLMenuItemGL>("New Note")->setEnabled(enable);
menu->getChild<LLMenuItemGL>("New Gesture")->setEnabled(enable);