Skip to content
Permalink
Browse files

Refresh the attribute table styles when feature modified programmatic…

…ally
  • Loading branch information
suricactus committed Dec 21, 2020
1 parent c851c0f commit 68b65ca8982526e45a6029de566f0c33180f70a0
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/attributetable/qgsattributetablemodel.cpp
@@ -766,11 +766,11 @@ bool QgsAttributeTableModel::setData( const QModelIndex &index, const QVariant &
if ( !index.isValid() || index.column() >= mFieldCount || role != Qt::EditRole || !layer()->isEditable() )
return false;

mRowStylesMap.remove( mFeat.id() );

if ( !layer()->isModified() )
return false;

mRowStylesMap.remove( mFeat.id() );

return true;
}

0 comments on commit 68b65ca

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