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

gui/qt: use function that conditionally returns an item in PLModel::isSupported

PLModel::getItem, which was used prior to this commit, will return
either the item associated with an index, or the item referring to the
associated playlist (currently in flight).

Given that we have options that shall only be available if the index is
associated with a given item, simply having a check to see whether
"item" is not null will ease implementation (the alternative is to
compare it to "rootItem", which is redundant).
Signed-off-by: François Cartegnie's avatarFrancois Cartegnie <>
parent 0b6a51ed
......@@ -1001,7 +1001,7 @@ bool PLModel::action( QAction *action, const QModelIndexList &indexes )
bool PLModel::isSupportedAction( actions action, const QModelIndex &index ) const
const PLItem *item = getItem( index );
AbstractPLItem const* item = VLCModel::getItem( index );
switch ( action )
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