summaryrefslogtreecommitdiff
path: root/indra/llui/llflatlistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llui/llflatlistview.cpp')
-rw-r--r--indra/llui/llflatlistview.cpp17
1 files changed, 3 insertions, 14 deletions
diff --git a/indra/llui/llflatlistview.cpp b/indra/llui/llflatlistview.cpp
index d499e08ecb..0fd7e7ed55 100644
--- a/indra/llui/llflatlistview.cpp
+++ b/indra/llui/llflatlistview.cpp
@@ -53,17 +53,6 @@ LLFlatListView::Params::Params()
no_items_text("no_items_text")
{};
-LLFlatListView::~LLFlatListView()
-{
- clear();
- // Route menu back to the default
- if( gEditMenuHandler == this )
- {
- gEditMenuHandler = NULL;
- }
-};
-
-
void LLFlatListView::reshape(S32 width, S32 height, BOOL called_from_parent /* = TRUE */)
{
LLScrollContainer::reshape(width, height, called_from_parent);
@@ -795,13 +784,13 @@ bool LLFlatListView::selectNextItemPair(bool is_up_direction, bool reset_selecti
BOOL LLFlatListView::canSelectAll() const
{
- return !mItemPairs.empty() && mAllowSelection;
+ return !mItemPairs.empty() && mAllowSelection && mMultipleSelection;
}
void LLFlatListView::selectAll()
{
- if (!mAllowSelection)
- return;
+ if (!mAllowSelection || !mMultipleSelection)
+ return false;
mSelectedItemPairs.clear();