From 3b20ce511061e364e85540c40d274cc9a5b06fe2 Mon Sep 17 00:00:00 2001 From: Jonathan Yap Date: Mon, 27 Dec 2010 08:58:21 -0500 Subject: STORM-737 A little more code cleanup per Code Review suggestions. --- indra/newview/llpanelmaininventory.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'indra') diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index 4e2fca9f9e..9c1d884046 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -506,7 +506,7 @@ void LLPanelMainInventory::onFilterSelected() return; } - getChildView("add_btn_panel")->setVisible(true); +// getChildView("add_btn_panel")->setVisible(true); setFilterSubString(mFilterSubString); LLInventoryFilter* filter = mActivePanel->getFilter(); @@ -945,7 +945,8 @@ 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. - mMenuAdd->getChild("New Folder")->setEnabled(mActivePanel->getName() != "Recent Items"); + bool recent_active = ("Recent Items" == mActivePanel->getName()); + mMenuAdd->getChild("New Folder")->setEnabled(!recent_active); setUploadCostIfNeeded(); -- cgit v1.2.3