Skip to content

Commit b224569

Browse files
committed
emit dataChanged in setData because Qt says to do so
1 parent 6b66b20 commit b224569

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/app/qgslayercapabilitiesmodel.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ bool QgsLayerCapabilitiesModel::setData( const QModelIndex &index, const QVarian
246246
mNonIdentifiableLayers.removeAll( layer->id() );
247247
if ( !containsLayer && nonIdentifiable )
248248
mNonIdentifiableLayers.append( layer->id() );
249+
emit dataChanged( index, index );
249250
return true;
250251
}
251252
else if ( index.column() == ReadOnlyColumn )
@@ -254,6 +255,7 @@ bool QgsLayerCapabilitiesModel::setData( const QModelIndex &index, const QVarian
254255
if ( vl )
255256
{
256257
mReadOnlyLayers.insert( layer, value == Qt::Checked );
258+
emit dataChanged( index, index );
257259
return true;
258260
}
259261
}
@@ -263,6 +265,7 @@ bool QgsLayerCapabilitiesModel::setData( const QModelIndex &index, const QVarian
263265
if ( vl )
264266
{
265267
mSearchableLayers.insert( layer, value == Qt::Checked );
268+
emit dataChanged( index, index );
266269
return true;
267270
}
268271
}

0 commit comments

Comments
 (0)