Revision 83538b4...

Go back to digest for 5th June 2011

Bug Fixes in KDE Base

Frank Reininghaus committed changes in [kdelibs] /:

Fix possible crash in KDirModel if the root item is deleted or moved

If the root item of the dir model is deleted, but it is not the first
item in the list that KDirModelPrivate::_k_slotDeleteItems(...) gets
from the dir lister, a crash may result because
KDirModelPrivate::removeFromNodeHash(...) calls isDir() for a null
KFileItem. This commit extends the protection agains this kind of crash
that has been introduced in c8939409eed00420fb43ff22cfc6c9092e4da7e5 for
the first item to the rest of the list.

File Changes

Modified 3 files
  •   kio/kio/kdirmodel.cpp
  •   kio/tests/kdirmodeltest.cpp
  •   kio/tests/kdirmodeltest.h
3 files changed in total