]> git.sesse.net Git - vlc/commitdiff
Qt: clear PL item id cache when sorting
authorJakob Leben <jleben@videolan.org>
Mon, 25 Jan 2010 00:06:48 +0000 (01:06 +0100)
committerJakob Leben <jleben@videolan.org>
Mon, 25 Jan 2010 00:09:06 +0000 (01:09 +0100)
fix #3263

modules/gui/qt4/components/playlist/playlist_model.cpp

index fe586d94e8a27db1195d03fa02b2ca2d28206f3d..eb695f3ad66f6c8df0b0c9b8cf3383d4ce98a05c 100644 (file)
@@ -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 );