Skip to content
Permalink
Browse files

Fix possible infinite recursion in layer tree model

  • Loading branch information
nyalldawson committed Jan 16, 2018
1 parent 6239365 commit 4b9c80816907bbc47f2762a6c46949d9b2a0b192
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/layertree/qgslayertreemodel.cpp
@@ -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 )
{

0 comments on commit 4b9c808

Please sign in to comment.
You can’t perform that action at this time.