diff options
| author | Méven Car <[email protected]> | 2019-10-20 12:35:52 +0200 |
|---|---|---|
| committer | Méven Car <[email protected]> | 2019-10-20 16:05:19 +0200 |
| commit | 56a38da57a020ed5617d5293013c4f8cc2d04fc3 (patch) | |
| tree | 472d22057e1834aaaa8f9d29906fe219c9156e19 /src/tests/kitemlistcontrollertest.cpp | |
| parent | e3f1d50b73c95155c1409242baae7be55651d664 (diff) | |
Avoid emitting twice twice selectionChanged when keyboard changes the selection, fix slotChangeCurrentItem
Summary:
In KItemListController::slotChangeCurrentItem searchFromNextItem use was bugged :
The two branches of `if (searchFromNextItem)` both looked for the next keyboard with indexForKeyboardSearch(text, currentIndex (the first one with just a +1 modulo).
But when searchFromNextItem is false, we are supposed to start to look for the next indexKeyboard from the start of the list `0`, not from the `currentIndex`
Reviewers: elvisangelaccio, #dolphin
Reviewed By: elvisangelaccio, #dolphin
Subscribers: kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D24505
Diffstat (limited to 'src/tests/kitemlistcontrollertest.cpp')
0 files changed, 0 insertions, 0 deletions
