]> cloud.milkyroute.net Git - dolphin.git/commit
Fix crash #1 when filtering items
authorPeter Penz <peter.penz19@gmail.com>
Sun, 4 Dec 2011 17:16:39 +0000 (18:16 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Sun, 4 Dec 2011 17:21:46 +0000 (18:21 +0100)
commit854b0acd1a259fab40e42c8470bb144c955dcc5a
tree376e1aa31a85dd410ba1d4236cb0b3c26c83763a
parent031b1a4c19945456a389ddb00630aadf95b0c09a
Fix crash #1 when filtering items

When filtering items it was possible that the current index got
an invalid value which resulted in accessing the URL of a
null-KFileItem.

There is still one (general) open issue in KFileItemModelRolesUpdater
(crash #2) where a KFileItem that is already null gets read.
It is not really related to filtering but can be triggered
quite easy when filtering huge directories with enabled previews.

CCBUG: 287642
src/kitemviews/kfileitemmodel.cpp
src/kitemviews/kfileitemmodel.h
src/kitemviews/kitemlistselectionmanager.cpp
src/tests/kfileitemmodeltest.cpp
src/tests/kitemlistselectionmanagertest.cpp
src/views/dolphinview.cpp