When the current item is removed, make -1 the current index temporarily
author Frank Reininghaus
()
committer Frank Reininghaus
()
commit 68ce395a192362969783615e50a8004d3029eb7e
tree de65b0d74f4234bf8b0b12a6a398c521f4aa73f6
parent d3b1312d3edc615b03fb17c1a5fa62ccb61cdabd
When the current item is removed, make -1 the current index temporarily

This fixes two problems:
1. KItemListKeyboardSearchManger can cancel the current search when a
new folder is opened (note that this action removes the current item
from the view).
2. The view can underline the new current item (which is the item that
used to be below the removed item). Note that this did not work
before because the view did not receive a currentChanged() signal in
this case and therefore did not update the "current item" status of
the new current item.

BUG: 297488
BUG: 298782
FIXED-IN: 4.8.3
REVIEW: 104709
dolphin/src/kitemviews/kitemlistcontroller.cpp
dolphin/src/kitemviews/kitemlistkeyboardsearchmanager.cpp
dolphin/src/kitemviews/kitemlistkeyboardsearchmanager_p.h
dolphin/src/kitemviews/kitemlistselectionmanager.cpp