Commit 08d06b22 authored by Edward Wang's avatar Edward Wang Committed by Jean-Baptiste Kempf

Only allow clearing playlist if current item can be edited

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
(cherry picked from commit 4f771d1d5cab79ff16a494edb2c97bb7366f923d)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7a0d2452
......@@ -978,8 +978,10 @@ bool PLModel::popup( const QModelIndex & index, const QPoint &point, const QMode
menu.addSeparator();
menu.addAction( QIcon( ":/toolbar/clear" ), qtr("Clear playlist"),
this, SLOT( clearPlaylist() ) );
if( canEdit() ) {
menu.addAction( QIcon( ":/toolbar/clear" ), qtr("Clear playlist"),
this, SLOT( clearPlaylist() ) );
}
/* Playlist sorting */
if( !sortingMenu )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment