Make sure that KFileItemModel::removeExpandedItems() also expands filtered items

Review Request #112962 - Created Sept. 26, 2013 and submitted

Information
Frank Reininghaus
kde-baseapps
KDE/4.11
325344
Reviewers
dolphin
I just noticed that KFileItemModel::removeExpandedItems() fails to remove expanded items that are currently filtered, which can make expanded items re-appear incorrectly after switching from Details to Icons View.

The fix is quite straightforward - just iterate over the filtered items and remove those which have a parent.
Fixes the bug for me. Old and new unit tests pass.
Emmanuel Pescosta
Commit Hook
Frank Reininghaus
Review request changed

Status: Closed (submitted)

Loading...