diff options
author | prep <prep@lindenlab.com> | 2011-01-05 16:12:15 -0500 |
---|---|---|
committer | prep <prep@lindenlab.com> | 2011-01-05 16:12:15 -0500 |
commit | c9f3a5574e223bec95b4ec374fd164ba9a486c2a (patch) | |
tree | edbd6574b4133488f82e872bb86d3aacda4af216 /indra/newview/llpanelmaininventory.cpp | |
parent | 5b09da5079d576678eb5d66a5518044d1b22664f (diff) | |
parent | 7c7527b6727a6070fd7679ea28e4e2692452bf27 (diff) |
merge
Diffstat (limited to 'indra/newview/llpanelmaininventory.cpp')
-rw-r--r-- | indra/newview/llpanelmaininventory.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index 116625b05d..a3aa3dbdff 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -506,9 +506,6 @@ void LLPanelMainInventory::onFilterSelected() return; } - BOOL recent_active = ("Recent Items" == mActivePanel->getName()); - getChildView("add_btn_panel")->setVisible( !recent_active); - setFilterSubString(mFilterSubString); LLInventoryFilter* filter = mActivePanel->getFilter(); LLFloaterInventoryFinder *finder = getFinder(); @@ -953,6 +950,11 @@ void LLPanelMainInventory::updateListCommands() void LLPanelMainInventory::onAddButtonClick() { +// 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. + bool recent_active = ("Recent Items" == mActivePanel->getName()); + mMenuAdd->getChild<LLMenuItemGL>("New Folder")->setEnabled(!recent_active); + setUploadCostIfNeeded(); showActionMenu(mMenuAdd,"add_btn"); |