File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,10 @@ bool QgsFeatureAction::editFeature( bool showModal )
115
115
if ( showModal )
116
116
{
117
117
dialog->setAttribute ( Qt::WA_DeleteOnClose );
118
- return dialog->exec ();
118
+ int rv = dialog->exec ();
119
+
120
+ mFeature .setAttributes ( dialog->feature ()->attributes () );
121
+ return rv;
119
122
}
120
123
else
121
124
{
Original file line number Diff line number Diff line change @@ -190,7 +190,10 @@ bool QgsAttributeForm::save()
190
190
mLayer ->beginEditCommand ( mEditCommandMessage );
191
191
bool res = mLayer ->addFeature ( updatedFeature );
192
192
if ( res )
193
+ {
194
+ mFeature .setAttributes ( updatedFeature.attributes () );
193
195
mLayer ->endEditCommand ();
196
+ }
194
197
else
195
198
mLayer ->destroyEditCommand ();
196
199
}
You can’t perform that action at this time.
0 commit comments