Skip to content
Permalink
Browse files
[attribute table] fix crash when adding creating a field on field-les…
…s layers
  • Loading branch information
nirvn committed Feb 8, 2018
1 parent 75843a8 commit 839fa50
Showing 1 changed file with 1 addition and 1 deletion.
@@ -313,8 +313,8 @@ void QgsVectorLayerUndoCommandAddAttribute::undo()
void QgsVectorLayerUndoCommandAddAttribute::redo()
{
mBuffer->mAddedAttributes.append( mField );
mBuffer->updateLayerFields();
mBuffer->handleAttributeAdded( mFieldIndex );
mBuffer->updateLayerFields();

emit mBuffer->attributeAdded( mFieldIndex );
}

0 comments on commit 839fa50

Please sign in to comment.