Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix possible infinite recursion in layer tree model
  • Loading branch information
nyalldawson committed Jan 16, 2018
1 parent 6239365 commit 4b9c808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/layertree/qgslayertreemodel.cpp
Expand Up @@ -362,7 +362,7 @@ bool QgsLayerTreeModel::setData( const QModelIndex &index, const QVariant &value

QgsLayerTreeNode *node = index2node( index );
if ( !node )
return QgsLayerTreeModel::setData( index, value, role );
return QAbstractItemModel::setData( index, value, role );

if ( role == Qt::CheckStateRole )
{
Expand Down

0 comments on commit 4b9c808

Please sign in to comment.