Skip to content
Permalink
Browse files

openFeatureForm: Update attributes on provided when used modal

Fix #11099
  • Loading branch information
m-kuhn committed Aug 26, 2014
1 parent 956f80e commit 4b8288c026e1cb7d6e1bd30eab6c09aec9b06404
Showing with 7 additions and 1 deletion.
  1. +4 −1 src/app/qgsfeatureaction.cpp
  2. +3 −0 src/gui/qgsattributeform.cpp
@@ -115,7 +115,10 @@ bool QgsFeatureAction::editFeature( bool showModal )
if ( showModal )
{
dialog->setAttribute( Qt::WA_DeleteOnClose );
return dialog->exec();
int rv = dialog->exec();

mFeature.setAttributes( dialog->feature()->attributes() );
return rv;
}
else
{
@@ -190,7 +190,10 @@ bool QgsAttributeForm::save()
mLayer->beginEditCommand( mEditCommandMessage );
bool res = mLayer->addFeature( updatedFeature );
if ( res )
{
mFeature.setAttributes( updatedFeature.attributes() );
mLayer->endEditCommand();
}
else
mLayer->destroyEditCommand();
}

0 comments on commit 4b8288c

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