Skip to content
Permalink
Browse files

Fix add feature dialog for attribute-less layers

Fix #10351
  • Loading branch information
m-kuhn committed May 26, 2014
1 parent d652a80 commit 5e240b895bda6685719eeadb47952d3b4892ac1d
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/gui/qgsattributeform.cpp
@@ -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();

0 comments on commit 5e240b8

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