[PATCH] KDirModel behavior when files are removed

Aurélien Gâteau aurelien.gateau at free.fr
Sat Sep 22 22:27:41 BST 2007


Matt Rogers wrote:

> On Saturday 22 September 2007 08:12:24 am Aurélien Gâteau wrote:
>> 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
> 
> Patch looks fine to me.

Thanks, just applied in r715680.

Aurélien





More information about the kde-core-devel mailing list