Skip to content

Commit

Permalink
Fix add feature dialog for attribute-less layers
Browse files Browse the repository at this point in the history
Fix #10351
  • Loading branch information
m-kuhn committed May 26, 2014
1 parent d652a80 commit 5e240b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/qgsattributeform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,11 @@ bool QgsAttributeForm::save()
{
bool doUpdate = false;

// An add dialog should perform an action by default
// and not only if attributes have "changed"
if ( mIsAddDialog )
doUpdate = true;

QgsAttributes src = mFeature.attributes();
QgsAttributes dst = mFeature.attributes();

Expand Down

0 comments on commit 5e240b8

Please sign in to comment.