]> git.sesse.net Git - vlc/commitdiff
Fix the issue with the order of the item in the playlist (normaly fix #1379)
authorRémi Duraffort <ivoire@videolan.org>
Tue, 26 Feb 2008 13:44:54 +0000 (13:44 +0000)
committerRémi Duraffort <ivoire@videolan.org>
Tue, 26 Feb 2008 13:44:54 +0000 (13:44 +0000)
modules/gui/qt4/components/playlist/playlist_model.cpp

index d919e857bffb45ec372e050a6010a6f90e177712..9709a4c14ee8c93ccaa5341949b74d41e91d23c6 100644 (file)
@@ -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();