mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Fix possible infinite recursion in layer tree model
This commit is contained in:
parent
6239365844
commit
4b9c808169
@ -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 )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user