Skip to content

Commit

Permalink
[bugfix] Attribute table model not updated when a feature is changed
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere authored and luipir committed Oct 19, 2017
1 parent 05dcb53 commit 492967a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/attributetable/qgsattributetablemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,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

0 comments on commit 492967a

Please sign in to comment.