Skip to content
Permalink
Browse files

emit dataChanged in setData because Qt says to do so

  • Loading branch information
3nids committed Aug 31, 2018
1 parent 6b66b20 commit b2245694bfc05b6fd731b34dc342a67e041bc2fc
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/app/qgslayercapabilitiesmodel.cpp
@@ -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 )
@@ -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;
}
}
@@ -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;
}
}

0 comments on commit b224569

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