[vlc-commits] gui/qt: fix PLModel::isSupportedAction( ACTION_ENQUEUE*, ... )
Filip Roséen
git at videolan.org
Sun Jul 24 20:39:14 CEST 2016
vlc | branch: master | Filip Roséen <filip at atch.se> | Sun Jul 24 15:19:15 2016 +0200| [1c97d0ba15fabb22dfe903be0ba0daada5306927] | committer: Francois Cartegnie
gui/qt: fix PLModel::isSupportedAction( ACTION_ENQUEUE*, ... )
Enqueing (adding) items to the current playlist should always be
accessible as long as the playlist where the context-menu is brought up
can be changed by the user.
Signed-off-by: Francois Cartegnie <fcvlcdev at free.fr>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1c97d0ba15fabb22dfe903be0ba0daada5306927
---
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 1845e30..dd64a13 100644
--- a/modules/gui/qt/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt/components/playlist/playlist_model.cpp
@@ -1050,7 +1050,7 @@ bool PLModel::isSupportedAction( actions action, const QModelIndex &index ) cons
case ACTION_ENQUEUEFILE:
case ACTION_ENQUEUEDIR:
case ACTION_ENQUEUEGENERIC:
- return !item->readOnly();
+ return canEdit();
case ACTION_SAVETOPLAYLIST:
return rowCount() > 0;
default:
More information about the vlc-commits
mailing list