Skip to content

Commit

Permalink
emit dataChanged in setData because Qt says to do so
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Aug 31, 2018
1 parent 6b66b20 commit b224569
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/qgslayercapabilitiesmodel.cpp
Expand Up @@ -246,6 +246,7 @@ bool QgsLayerCapabilitiesModel::setData( const QModelIndex &index, const QVarian
mNonIdentifiableLayers.removeAll( layer->id() );
if ( !containsLayer && nonIdentifiable )
mNonIdentifiableLayers.append( layer->id() );
emit dataChanged( index, index );
return true;
}
else if ( index.column() == ReadOnlyColumn )
Expand All @@ -254,6 +255,7 @@ bool QgsLayerCapabilitiesModel::setData( const QModelIndex &index, const QVarian
if ( vl )
{
mReadOnlyLayers.insert( layer, value == Qt::Checked );
emit dataChanged( index, index );
return true;
}
}
Expand All @@ -263,6 +265,7 @@ bool QgsLayerCapabilitiesModel::setData( const QModelIndex &index, const QVarian
if ( vl )
{
mSearchableLayers.insert( layer, value == Qt::Checked );
emit dataChanged( index, index );
return true;
}
}
Expand Down

0 comments on commit b224569

Please sign in to comment.