Commit 5f2dc0e2 authored by Jakob Leben's avatar Jakob Leben

Qt: prevent having cached a deleted item

When deleting, clear cache in any case since deleting an item deletes all it's children too.
parent f296eec5
......@@ -724,7 +724,7 @@ void PLModel::removeItem( PLItem *item )
{
if( !item ) return;
if( item->i_id == i_cached_id ) i_cached_id = -1;
i_cached_id = -1;
i_cached_input_id = -1;
if( item->parentItem ) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment