[vlc-devel] commit: Qt: clear PL item id cache when sorting (Jakob Leben )

git version control git at videolan.org
Mon Jan 25 01:13:25 CET 2010


vlc | branch: master | Jakob Leben <jleben at videolan.org> | Mon Jan 25 01:06:48 2010 +0100| [251ae55f0d30e03840cbe33b6852940c6b5575ff] | committer: Jakob Leben 

Qt: clear PL item id cache when sorting

fix #3263

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

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

diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index fe586d9..eb695f3 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -847,6 +847,9 @@ void PLModel::sort( int i_root_id, int column, Qt::SortOrder order )
                                             ORDER_NORMAL : ORDER_REVERSE );
         }
     }
+
+    i_cached_id = i_cached_input_id = -1;
+
     if( count )
     {
         beginInsertRows( qIndex, 0, count - 1 );




More information about the vlc-devel mailing list