Skip to content

Commit e6d3c0b

Browse files
committed
Followup 11f197e
Fix #10922
1 parent 1494069 commit e6d3c0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/qgsfeatureaction.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ bool QgsFeatureAction::editFeature()
118118
else
119119
{
120120
QgsAttributes src = mFeature.attributes();
121-
dialog->setIsAddDialog( true );
121+
if ( !mFeature.isValid() )
122+
dialog->setIsAddDialog( true );
122123

123124
if ( dialog->exec() )
124125
{

0 commit comments

Comments
 (0)