[PATCH] KDirModel behavior when files are removed

Aurélien Gâteau aurelien.gateau at free.fr
Sat Sep 22 14:12:24 BST 2007


Hello,

When KDirModel is notified by KDirLister that an item has been removed (in
KDirModel::slotDeleteItem()), it removes items from its internal storage
*before* calling beginRemoveRows(). This makes it impossible to get the
KFileItem from an index in a view which reimplements
rowsAboutToBeRemoved().

Attached patch fix this. Is it ok to apply?

Aurélien
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdirmodel_remove_items_after_beginRemoveRows.diff
Type: text/x-diff
Size: 534 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070922/0c9c5cef/attachment.diff>


More information about the kde-core-devel mailing list