Commit f9fe9f29 authored by Ilkka Ollakka's avatar Ilkka Ollakka

Qt4: check that index.isValid too

parent bed0b780
......@@ -388,6 +388,9 @@ QVariant PLModel::data( const QModelIndex &index, int role ) const
/* Seek from current index toward the top and see if index is one of parent nodes */
bool PLModel::isParent( const QModelIndex &index, const QModelIndex &current ) const
{
if( !index.isValid() )
return false;
if( index == current )
return true;
......
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