[vlc-commits] commit: Qt: prevent having cached a deleted item (Jakob Leben )

git version control git at videolan.org
Fri Mar 5 15:16:27 CET 2010


vlc | branch: master | Jakob Leben <jleben at videolan.org> | Fri Mar  5 15:13:27 2010 +0100| [5f2dc0e2d0a920e45c4c6c85589f85aaa9202927] | committer: 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.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5f2dc0e2d0a920e45c4c6c85589f85aaa9202927
---

 .../gui/qt4/components/playlist/playlist_model.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index f3d2955..04349cd 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 ) {



More information about the vlc-commits mailing list