summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
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);