Commit e7fcaab6 authored by Ilkka Ollakka's avatar Ilkka Ollakka

Qt4: add check if current isValid()

parent 0d9ca0e0
......@@ -391,7 +391,7 @@ bool PLModel::isParent( const QModelIndex &index, const QModelIndex &current ) c
if( index == current )
return true;
if( !current.parent().isValid() )
if( !current.isValid() || !current.parent().isValid() )
return false;
return isParent( index, current.parent() );
......
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