[vlc-commits] Qt: don't sort playlist by cover (fix #15372)

Hannes Domani git at videolan.org
Sat Jan 16 17:34:05 CET 2016


vlc | branch: master | Hannes Domani <ssbssa at yahoo.de> | Fri Jan 15 15:49:46 2016 +0100| [c111bfead47e2e2629cb586fca00e9cfef3aad57] | committer: Jean-Baptiste Kempf

Qt: don't sort playlist by cover (fix #15372)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c111bfead47e2e2629cb586fca00e9cfef3aad57
---

 modules/gui/qt4/components/playlist/playlist_model.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index 3734efb..aebf348 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -785,7 +785,7 @@ void PLModel::sort( QModelIndex caller, QModelIndex rootIndex, const int column,
     msg_Dbg( p_intf, "Sorting by column %i, order %i", column, order );
 
     int meta = columnToMeta( column );
-    if( meta == COLUMN_END ) return;
+    if( meta == COLUMN_END || meta == COLUMN_COVER ) return;
 
     PLItem *item = ( rootIndex.isValid() ) ? getItem( rootIndex )
                                            : rootItem;



More information about the vlc-commits mailing list