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
Showing
- src/kitemviews/kitemlistcontroller.cpp 2 additions, 0 deletionssrc/kitemviews/kitemlistcontroller.cpp
- src/kitemviews/kitemlistkeyboardsearchmanager.cpp 10 additions, 0 deletionssrc/kitemviews/kitemlistkeyboardsearchmanager.cpp
- src/kitemviews/kitemlistkeyboardsearchmanager_p.h 4 additions, 0 deletionssrc/kitemviews/kitemlistkeyboardsearchmanager_p.h
- src/kitemviews/kitemlistselectionmanager.cpp 6 additions, 3 deletionssrc/kitemviews/kitemlistselectionmanager.cpp
Loading
Please register or sign in to comment