Fixed normal bug EXT-6659("Ctrl+A" combination allows selecting of several picks) - added check that multiple selection is allowed

Reviewed by Mike Antipov at https://codereview.productengine.com/secondlife/r/146/

--HG--
branch : product-engine
master
Eugene Mutavchi 2010-04-01 11:32:51 +03:00
parent 7263906f49
commit 7f38ea1474
1 changed files with 2 additions and 3 deletions

View File

@ -562,8 +562,7 @@ BOOL LLFlatListView::handleKeyHere(KEY key, MASK mask)
{
if(MASK_CONTROL & mask)
{
selectAll();
handled = TRUE;
handled = (BOOL)selectAll();
}
break;
}
@ -793,7 +792,7 @@ bool LLFlatListView::selectNextItemPair(bool is_up_direction, bool reset_selecti
bool LLFlatListView::selectAll()
{
if (!mAllowSelection)
if (!mAllowSelection || !mMultipleSelection)
return false;
mSelectedItemPairs.clear();