From 5f2dc0e2d0a920e45c4c6c85589f85aaa9202927 Mon Sep 17 00:00:00 2001 From: Jakob Leben Date: Fri, 5 Mar 2010 15:13:27 +0100 Subject: [PATCH] Qt: prevent having cached a deleted item When deleting, clear cache in any case since deleting an item deletes all it's children too. --- modules/gui/qt4/components/playlist/playlist_model.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp index f3d2955b99..04349cd87e 100644 --- a/modules/gui/qt4/components/playlist/playlist_model.cpp +++ b/modules/gui/qt4/components/playlist/playlist_model.cpp @@ -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 ) { -- 2.39.5