/* Seek from current index toward the top and see if index is one of parent nodes */
bool PLModel::isParent( const QModelIndex &index, const QModelIndex ¤t ) const
{
+ if( !index.isValid() )
+ return false;
+
if( index == current )
return true;