]> cloud.milkyroute.net Git - dolphin.git/commit
Always select items on activation
authorFelix Ernst <fe.a.ernst@gmail.com>
Fri, 4 Mar 2022 10:41:50 +0000 (10:41 +0000)
committerFelix Ernst <fe.a.ernst@gmail.com>
Fri, 4 Mar 2022 10:41:50 +0000 (10:41 +0000)
commitcd369a151932e7076c24b01f94c5d6c5fe15ecef
tree359509bbb60fb482d17255794c618618c57c96b3
parente8dc49e4b24f5805d0664fcf842ab7b94af4a013
Always select items on activation

There is an unintended side-effect in
d3839617193e92463806580699caa595c892b8a6 which this MR fixes.

Normally in Dolphin, when clicking on an item to open/activate it,
it is both selected by the click and opened/activated.

Prior to this MR, the item wasn't selected when all of these
conditions were met:
- Use ActivateItemOnSingleClick also knwon as single-click mode
- Have more than one item selected already
- Click on an item that was previously not selected

Prior to this MR, the click would deselect all items and
activate the clicked item but not select it.

With this MR, the click will deselect all items, activate
the clicked item and also select it and move the anchor there.

When testing this with folders, make sure to navigate back after activating the folder. The folder should then still be selected.

This is then consistent with the behaviour when the specific
conditions mentioned above are not met.
src/kitemviews/kitemlistcontroller.cpp