Bug 329118

Summary: If a filtered item is renamed, and the filter is cleared, the old file name is shown in the view
Product: [Applications] dolphin Reporter: Frank Reininghaus <frank78ac>
Component: view-engine: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 4.12.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 4.12.1

Description Frank Reininghaus 2013-12-22 11:49:38 UTC
See summary.

Reproducible: Always

Steps to Reproduce:
1. In an empty directory, create two test files with "touch a.txt b.jpg"
2. Open the directory in Dolphin, and split the view.
3. In one of the views, press Ctrl+I and enter the filter text "txt" -> b.jpg disappears.
4. In the other view, rename "b.jpg" to "c.jpg".
5. Clear the filter.
Actual Results:  
The view still shows a.txt and b.jpg.

Expected Results:  
The view should show a.txt and c.jpg.

Patch at https://git.reviewboard.kde.org/r/114459/
Comment 1 Frank Reininghaus 2013-12-22 11:54:46 UTC
Git commit c0a851893ecfc48a9ec7d475d0f7b8213514f9c3 by Frank Reininghaus.
Committed on 22/12/2013 at 11:50.
Pushed by freininghaus into branch 'KDE/4.12'.

Update filtered items when the "refreshItems" signal is received

This fixes the problem that the new file name is not shown in the view
if an item is renamed while it is filtered.
FIXED-IN: 4.12.1
REVIEW: 114459

M  +14   -0    dolphin/src/kitemviews/kfileitemmodel.cpp
M  +30   -0    dolphin/src/tests/kfileitemmodeltest.cpp

http://commits.kde.org/kde-baseapps/c0a851893ecfc48a9ec7d475d0f7b8213514f9c3