Commit 6e17d45c authored by Filip Roséen's avatar Filip Roséen Committed by François Cartegnie

gui/qt: fix PLModel::isSupportedAction( ACTION_SAVETOPLAYLIST, ... )

Given that the relevant action saves the current playlist (ie.
ROOTTYPE_CURRENT_PLAYING) to a file, it only make sense to show this
option if the user is actually looking at that playlist.

This commit changes the logic associated so that it appears when that is
the case, not just because we have items in the current view.
Signed-off-by: François Cartegnie's avatarFrancois Cartegnie <fcvlcdev@free.fr>
parent 8fb83a5f
......@@ -1060,7 +1060,7 @@ bool PLModel::isSupportedAction( actions action, const QModelIndex &index ) cons
case ACTION_ENQUEUEGENERIC:
return canEdit();
case ACTION_SAVETOPLAYLIST:
return rowCount() > 0;
return getPLRootType() == ROOTTYPE_CURRENT_PLAYING && rowCount();
default:
return false;
}
......
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