From: RĂ©mi Duraffort Date: Tue, 26 Feb 2008 13:44:54 +0000 (+0000) Subject: Fix the issue with the order of the item in the playlist (normaly fix #1379) X-Git-Tag: 0.9.0-test0~2475 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=7feda7b730dfb3ba95d4546ee762e34dde364c9a;p=vlc Fix the issue with the order of the item in the playlist (normaly fix #1379) --- 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();