┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/views/dolphinview.cpp
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2011-12-04 13:37:51 +0100
committerFrank Reininghaus <[email protected]>2011-12-04 13:54:05 +0100
commit82b20ff58e9448868cf23783dcaf1fe304707791 (patch)
tree6f6669043c1ad3aa4f115f4e25c66c868a883ded /src/views/dolphinview.cpp
parente2e5b0e45a0c6e2a943a56e5f4751b70c66104e7 (diff)
Clear the selection in MousePressEvent() rather than MouseReleaseEvent()
This fixes the problem that clicking an unselected item in order to drag it would result in dragging all previously selected items as well. With this commit, previously selected items are unselected when a new item is clicked. The reason why clearing the selection was moved to MouseReleaseEvent() in commit b583dd6d4d3a03e3af2ec8d370132b84935ff871 was that clicking one of several selected items should not result in unselecting the other items (to make sure that dragging multiple items is possible). However, this can also be assured by just checking in MousePressEvent() if the clicked item has been selected already and not clearing the previous selection in that case. This applies equally to the case that a context menu is requested when several items are selected.
Diffstat (limited to 'src/views/dolphinview.cpp')
0 files changed, 0 insertions, 0 deletions