summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorJonathan Yap <none@none>2010-12-24 18:09:08 -0500
committerJonathan Yap <none@none>2010-12-24 18:09:08 -0500
commit5e9e350debb83e35a9a58f3ac1bb6eba410f6f8f (patch)
tree7fc8a2a7531777a1bc84a70738aeb86baac0edd2 /indra/newview
parent5d4b4a185914558831546a15730780cea5e560e7 (diff)
STORM-737 Added comment. Combined code to eliminate temporary constant.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llpanelmaininventory.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp
index 5e280ef98f..4e2fca9f9e 100644
--- a/indra/newview/llpanelmaininventory.cpp
+++ b/indra/newview/llpanelmaininventory.cpp
@@ -943,8 +943,9 @@ void LLPanelMainInventory::updateListCommands()
void LLPanelMainInventory::onAddButtonClick()
{
- BOOL recent_active = ("Recent Items" == mActivePanel->getName());
- mMenuAdd->getChild<LLMenuItemGL>("New Folder")->setEnabled(!recent_active);
+// Gray out the "New Folder" option when the Recent tab is active as new folders will not be displayed
+// unless "Always show folders" is checked in the filter options.
+ mMenuAdd->getChild<LLMenuItemGL>("New Folder")->setEnabled(mActivePanel->getName() != "Recent Items");
setUploadCostIfNeeded();