Skip to content

Commit 4dce5ec

Browse files
committedAug 14, 2014
Followup b53cab2, Edit dialog is not an add dialog
Fix #11036
1 parent 54e3fea commit 4dce5ec

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)
Please sign in to comment.