gui/qt: fix PLModel::isSupportedAction( ACTION_SAVETOPLAYLIST, ... )
commit6e17d45c5cdff007de44a0d0e43bbed3b7e7b0a4
authorFilip Roséen <filip@atch.se>
Sun, 24 Jul 2016 15:56:58 +0000 (24 17:56 +0200)
committerFrancois Cartegnie <fcvlcdev@free.fr>
Sun, 24 Jul 2016 18:11:02 +0000 (24 20:11 +0200)
treeaf61cb4a90939b133540a3af53ab7295fab1f4f3
parent8fb83a5fd33a39125caa28af8dd91d8c6de0376e
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: Francois Cartegnie <fcvlcdev@free.fr>
modules/gui/qt/components/playlist/playlist_model.cpp