diff options
| author | MaximB ProductEngine <mberezhnoy@productengine.com> | 2012-12-04 14:45:19 +0200 |
|---|---|---|
| committer | MaximB ProductEngine <mberezhnoy@productengine.com> | 2012-12-04 14:45:19 +0200 |
| commit | 4c3510bc4e4c2365bf75c3fbfdfae6b329a420e0 (patch) | |
| tree | 6a712f7b27366afc5e99e1b43138be45edeef388 /indra/llui/llfolderviewitem.cpp | |
| parent | f888a3fd00ca32275ab2da6437cb011b3ab78f89 (diff) | |
| parent | 8c24cc8e3635888b766e30001749966eddc0dc7e (diff) | |
merging
Diffstat (limited to 'indra/llui/llfolderviewitem.cpp')
| -rwxr-xr-x | indra/llui/llfolderviewitem.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llui/llfolderviewitem.cpp b/indra/llui/llfolderviewitem.cpp index 261f53d6b6..9b54a7a467 100755 --- a/indra/llui/llfolderviewitem.cpp +++ b/indra/llui/llfolderviewitem.cpp @@ -501,7 +501,7 @@ BOOL LLFolderViewItem::handleMouseDown( S32 x, S32 y, MASK mask ) // No handler needed for focus lost since this class has no // state that depends on it. gFocusMgr.setMouseCapture( this ); - + if (!mIsSelected) { if(mask & MASK_CONTROL) @@ -518,6 +518,11 @@ 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 { mSelectPending = TRUE; |
