Skip to content

Commit 492967a

Browse files
pblottiereluipir
authored andcommittedOct 19, 2017
[bugfix] Attribute table model not updated when a feature is changed
1 parent 05dcb53 commit 492967a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/gui/attributetable/qgsattributetablemodel.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ void QgsAttributeTableModel::attributeValueChanged( QgsFeatureId fid, int idx, c
289289
// No filter request: skip all possibly heavy checks
290290
if ( mFeatureRequest.filterType() == QgsFeatureRequest::FilterNone )
291291
{
292-
setData( index( idToRow( fid ), fieldCol( idx ) ), value, Qt::EditRole );
292+
if ( loadFeatureAtId( fid ) )
293+
setData( index( idToRow( fid ), fieldCol( idx ) ), value, Qt::EditRole );
293294
}
294295
else
295296
{

0 commit comments

Comments
 (0)
Please sign in to comment.