Skip to content
Snippets Groups Projects
Commit 7f38ea14 authored by Eugene Mutavchi's avatar Eugene Mutavchi
Browse files

Fixed normal bug EXT-6659("Ctrl+A" combination allows selecting of several...

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
parent 7263906f
No related branches found
No related tags found
No related merge requests found
...@@ -562,8 +562,7 @@ BOOL LLFlatListView::handleKeyHere(KEY key, MASK mask) ...@@ -562,8 +562,7 @@ BOOL LLFlatListView::handleKeyHere(KEY key, MASK mask)
{ {
if(MASK_CONTROL & mask) if(MASK_CONTROL & mask)
{ {
selectAll(); handled = (BOOL)selectAll();
handled = TRUE;
} }
break; break;
} }
...@@ -793,7 +792,7 @@ bool LLFlatListView::selectNextItemPair(bool is_up_direction, bool reset_selecti ...@@ -793,7 +792,7 @@ bool LLFlatListView::selectNextItemPair(bool is_up_direction, bool reset_selecti
bool LLFlatListView::selectAll() bool LLFlatListView::selectAll()
{ {
if (!mAllowSelection) if (!mAllowSelection || !mMultipleSelection)
return false; return false;
mSelectedItemPairs.clear(); mSelectedItemPairs.clear();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment