Commit 4f771d1d 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>
parent 491b918f
......@@ -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