summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2009-12-07 15:49:08 -0500
committerLoren Shih <seraph@lindenlab.com>2009-12-07 15:49:08 -0500
commit9eee5fb5a496cb56ac677ed28e776fc181efbe22 (patch)
tree50695573ef1e1690a59066334e3a6da9eeaadb04 /indra/newview
parente5eba40869cc1f99d847125a4836d496018ccad7 (diff)
EXT-3214 : Trash icon flahes in Recent Items when nothing in history
Trash icon is disabled when no items are selected. --HG-- branch : avatar-pipeline
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llpanelmaininventory.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp
index 9fd92725dc..21627e84ff 100644
--- a/indra/newview/llpanelmaininventory.cpp
+++ b/indra/newview/llpanelmaininventory.cpp
@@ -1020,6 +1020,7 @@ BOOL LLPanelMainInventory::isActionEnabled(const LLSD& userdata)
can_delete = TRUE;
std::set<LLUUID> selection_set;
folder->getSelectionList(selection_set);
+ if (selection_set.empty()) return FALSE;
for (std::set<LLUUID>::iterator iter = selection_set.begin();
iter != selection_set.end();
++iter)