diff options
author | Merov Linden <merov@lindenlab.com> | 2013-01-09 19:10:41 -0800 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2013-01-09 19:10:41 -0800 |
commit | 60eaa8875df45f023c3bf0fb82863b05cb5a090f (patch) | |
tree | 9d43730a67caf7375b397ecf2974036597928678 /indra/llui/llfolderviewitem.cpp | |
parent | 9d70bc259a02a0f6dcc6cff1c95a34353e0f1e59 (diff) |
CHUI-652 : Fixed : Maintain multi selection consistent when click and drag an already selected item (drag multi select was broken)
Diffstat (limited to 'indra/llui/llfolderviewitem.cpp')
-rwxr-xr-x | indra/llui/llfolderviewitem.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/indra/llui/llfolderviewitem.cpp b/indra/llui/llfolderviewitem.cpp index b7165f68b7..42e5a6debf 100755 --- a/indra/llui/llfolderviewitem.cpp +++ b/indra/llui/llfolderviewitem.cpp @@ -506,13 +506,10 @@ BOOL LLFolderViewItem::handleMouseDown( S32 x, S32 y, MASK mask ) } make_ui_sound("UISndClick"); } - //Just re-select the item since it is clicked without ctrl or shift - else if(!(mask & (MASK_CONTROL | MASK_SHIFT))) - { - getRoot()->setSelection(this, FALSE); - } else { + // If selected, we reserve the decision of deselecting/reselecting to the mouse up moment. + // This is necessary so we maintain selection consistent when starting a drag. mSelectPending = TRUE; } |