]> git.sesse.net Git - vlc/commitdiff
Fix a little bug with the sorting in the interface
authorRémi Duraffort <ivoire@videolan.org>
Tue, 26 Feb 2008 09:39:01 +0000 (09:39 +0000)
committerRémi Duraffort <ivoire@videolan.org>
Tue, 26 Feb 2008 09:39:01 +0000 (09:39 +0000)
modules/gui/qt4/components/playlist/playlist_model.cpp

index 0d1d97dad124208322a3c9812d10ef0f9eb8fca4..d919e857bffb45ec372e050a6010a6f90e177712 100644 (file)
@@ -724,8 +724,8 @@ void PLModel::sort( int column, Qt::SortOrder order )
         switch( column )
         {
         case 0: i_mode = SORT_TITLE_NODES_FIRST;break;
-        case 1: i_mode = SORT_ARTIST;break;
-        case 2: i_mode = SORT_DURATION; break;
+        case 1: i_mode = SORT_DURATION; break;
+        case 2: i_mode = SORT_ARTIST;break;
         default: i_mode = SORT_TITLE_NODES_FIRST; break;
         }
         if( p_root )