Skip to content

Commit 6d50b37

Browse files
authored
Merge pull request #5403 from boundlessgeo/issue_17187_backportFrom3
[bugfix] Attribute table model not updated when a feature is changed. fixes #17280 #17187
2 parents 05dcb53 + 492967a commit 6d50b37

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)