From 7feda7b730dfb3ba95d4546ee762e34dde364c9a Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Duraffort?= Date: Tue, 26 Feb 2008 13:44:54 +0000 Subject: [PATCH] Fix the issue with the order of the item in the playlist (normaly fix #1379) --- modules/gui/qt4/components/playlist/playlist_model.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp index d919e857bf..9709a4c14e 100644 --- a/modules/gui/qt4/components/playlist/playlist_model.cpp +++ b/modules/gui/qt4/components/playlist/playlist_model.cpp @@ -729,9 +729,12 @@ void PLModel::sort( int column, Qt::SortOrder order ) default: i_mode = SORT_TITLE_NODES_FIRST; break; } if( p_root ) + { playlist_RecursiveNodeSort( p_playlist, p_root, i_mode, order == Qt::AscendingOrder ? ORDER_NORMAL : ORDER_REVERSE ); + p_playlist->b_reset_currently_playing = VLC_TRUE; + } } PL_UNLOCK; rebuild(); -- 2.39.5