diff options
author | Oz Linden <oz@lindenlab.com> | 2011-01-06 14:32:01 -0500 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2011-01-06 14:32:01 -0500 |
commit | 94fbf99ac2e325a75a016e2f4c3b12cf8c82fc7c (patch) | |
tree | 0f1aa2cbd03f47adf17f39e6bca8e7d5e4ac165c /indra/newview/llpanelmaininventory.cpp | |
parent | f1fd558dddf43277e024cb918c371d94d0764910 (diff) | |
parent | a9686db3e606ec45d23265fd34a1a35498f39857 (diff) |
merge changes for storm-714
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 17433a557b..c83176d980 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(); @@ -944,6 +941,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"); |