Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[bugfix] Attribute table model not updated when a feature is changed
  • Loading branch information
pblottiere committed Jun 25, 2017
1 parent 69af2f5 commit 5f22ba1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/attributetable/qgsattributetablemodel.cpp
Expand Up @@ -303,7 +303,8 @@ void QgsAttributeTableModel::attributeValueChanged( QgsFeatureId fid, int idx, c
// No filter request: skip all possibly heavy checks
if ( mFeatureRequest.filterType() == QgsFeatureRequest::FilterNone )
{
setData( index( idToRow( fid ), fieldCol( idx ) ), value, Qt::EditRole );
if ( loadFeatureAtId( fid ) )
setData( index( idToRow( fid ), fieldCol( idx ) ), value, Qt::EditRole );
}
else
{
Expand Down

1 comment on commit 5f22ba1

@luipir
Copy link
Contributor

@luipir luipir commented on 5f22ba1 Oct 19, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have to be backported to 2.18 to fix https://issues.qgis.org/issues/17187

Please sign in to comment.