[vlc-commits] Qt: allow sort of RO items lists

Francois Cartegnie git at videolan.org
Sun Jul 24 19:35:57 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Jul 24 19:35:14 2016 +0200| [0d3c4d5ce9d1c7cdd1052bbde8d87fbf493a398d] | committer: Francois Cartegnie

Qt: allow sort of RO items lists

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

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

diff --git a/modules/gui/qt/components/playlist/playlist_model.cpp b/modules/gui/qt/components/playlist/playlist_model.cpp
index e8c881c..6499797 100644
--- a/modules/gui/qt/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt/components/playlist/playlist_model.cpp
@@ -1014,7 +1014,7 @@ bool PLModel::isSupportedAction( actions action, const QModelIndex &index ) cons
         if( index != rootIndex() )
             return ( item->id( PLAYLIST_ID ) != THEPL->p_playing->i_id );
     case ACTION_SORT:
-        return rowCount() && !item->readOnly();
+        return rowCount();
     case ACTION_PLAY:
     {
         PL_LOCK;



More information about the vlc-commits mailing list