diff options
author | Vadim Savchuk <vsavchuk@productengine.com> | 2010-07-13 18:55:35 +0300 |
---|---|---|
committer | Vadim Savchuk <vsavchuk@productengine.com> | 2010-07-13 18:55:35 +0300 |
commit | 56af80a2c9991b5dd08066b132b1e4517558f056 (patch) | |
tree | aac99027a32051612fb738f86a88c2de02e8f09a | |
parent | b5ab9c07031ffadb77792c312ca2bb1131d90fb0 (diff) | |
parent | 8aec2ce3549ff0a39308d47fd3f136eaa8068639 (diff) |
merge
--HG--
branch : product-engine
-rw-r--r-- | indra/llui/llflatlistview.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/indra/llui/llflatlistview.cpp b/indra/llui/llflatlistview.cpp index a80a3f206f..ef962ac274 100644 --- a/indra/llui/llflatlistview.cpp +++ b/indra/llui/llflatlistview.cpp @@ -610,8 +610,14 @@ void LLFlatListView::onItemMouseClick(item_pair_t* item_pair, MASK mask) return; } - if (!(mask & MASK_CONTROL) || !mMultipleSelection) resetSelection(); - selectItemPair(item_pair, select_item); + //no need to do additional commit on selection reset + if (!(mask & MASK_CONTROL) || !mMultipleSelection) resetSelection(true); + + //only CTRL usage allows to deselect an item, usual clicking on an item cannot deselect it + if (mask & MASK_CONTROL) + selectItemPair(item_pair, select_item); + else + selectItemPair(item_pair, true); } void LLFlatListView::onItemRightMouseClick(item_pair_t* item_pair, MASK mask) |