Bug 297269

Summary: dolphin shows wrong files after filter with filter-bar
Product: dolphin Reporter: Evstifeev Roman <someuniquename>
Component: view-engine: generalAssignee: Peter Penz <peter.penz19>
Status: RESOLVED FIXED    
Severity: normal Keywords: reproducible
Priority: NOR    
Version: 2.0   
Target Milestone: ---   
Platform: openSUSE RPMs   
OS: Linux   
Latest Commit: Version Fixed In: 4.8.3
Attachments: dolphin filters wrong file
test folder that causes buggy dolphin filter

Description Evstifeev Roman 2012-04-01 22:24:46 UTC
Created attachment 70063 [details]
dolphin filters wrong file

Dolphin on KDE 4.8.1 sometimes shows wrong files after applying simple filter with filter-bar
see attached screenshot
in fact: 
 directory contains 2 files, that match filter "colin":
 1) !7 Colin self - Other Women.mp3
 2) !7 Colin Self - Queens on Top (2 NICKI LUV SNICKI).wav
after typing "colin" on filter bar (see scrrenshot) dolphin shows wrong name for the first file in the main view, but(!) it shows right file name in the statusbar when i hover the mouse over this wrongly-named file. (on the screenshot at the bottom)
Comment 1 Peter Penz 2012-04-02 09:40:00 UTC
Thanks for the report, sadly I could not reproduce the issue yet. Would it be possible that you attach a directory where the issue is reproducible as zip-file? It seems your original directory contains mp3-files so attaching this won't be possible, however it would be sufficient having a "dummy-directory" with e.g. 10 entries. My guess is that the issue is only reproducible if the filtered items have a specific order. Thanks in advance!
Comment 2 Evstifeev Roman 2012-04-02 11:37:30 UTC
Created attachment 70077 [details]
test folder that causes buggy dolphin filter

i nailed down testcase to this file list:
##### test folder ####
0
1
2 a here
3
asd
asd2
#######
if i try to filter for "asd" in this folder - i got in the view two files named just "asd" (instead of asd and asd2)
Comment 3 Peter Penz 2012-04-02 11:56:14 UTC
Great, I could reproduce the issue with your small example! Thanks! I'll try to provide a fix for this during the next 2 weeks.
Comment 4 Peter Penz 2012-04-05 14:14:30 UTC
Git commit 633dd99f0c64db62e46d9a91a8b44e172d80d37e by Peter Penz.
Committed on 05/04/2012 at 16:12.
Pushed by ppenz into branch 'master'.

Fix filtering issue

When filtering items it might be possible that the update of
the widgets is wrong although the model internally has a correct
state.
FIXED-IN: 4.8.3

M  +9    -3    dolphin/src/kitemviews/kitemlistview.cpp

http://commits.kde.org/kde-baseapps/633dd99f0c64db62e46d9a91a8b44e172d80d37e
Comment 5 Peter Penz 2012-04-05 14:22:06 UTC
Git commit ed5f3aaba7149b3816909a403bbd9f3e06d1a774 by Peter Penz.
Committed on 05/04/2012 at 16:21.
Pushed by ppenz into branch 'KDE/4.8'.

Fix filtering issue

When filtering items it might be possible that the update of
the widgets is wrong although the model internally has a correct
state.
FIXED-IN: 4.8.3

M  +8    -2    dolphin/src/kitemviews/kitemlistview.cpp

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