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

gui/qt: remove premature return in PLModel::isSupportedAction

The index passed will be considered invalid if the user right-clicks on
an area that does not belong to an entity.

Given that there are options that certainly are supported when such
right-click is in flight, we should not prematurely return from the
function; instead each case should respect whether we have a non-root
item tied to the on-going request or not.
Signed-off-by: François Cartegnie's avatarFrancois Cartegnie <fcvlcdev@free.fr>
parent 0d3c4d5c
......@@ -1001,9 +1001,6 @@ bool PLModel::action( QAction *action, const QModelIndexList &indexes )
bool PLModel::isSupportedAction( actions action, const QModelIndex &index ) const
{
if( !index.isValid() )
return false;
const PLItem *item = 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