Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix features cannot be added when using attribute table and form
popup (fix #14729)
  • Loading branch information
nyalldawson committed Apr 26, 2016
1 parent eed4ee6 commit d604a92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/qgsattributeform.cpp
Expand Up @@ -169,6 +169,7 @@ void QgsAttributeForm::setMode( QgsAttributeForm::Mode mode )
break;

case QgsAttributeForm::AddFeatureMode:
synchronizeEnabledState();
break;

case QgsAttributeForm::MultiEditMode:
Expand All @@ -181,8 +182,6 @@ void QgsAttributeForm::setMode( QgsAttributeForm::Mode mode )
void QgsAttributeForm::setIsAddDialog( bool isAddDialog )
{
setMode( isAddDialog ? AddFeatureMode : SingleEditMode );

synchronizeEnabledState();
}

void QgsAttributeForm::changeAttribute( const QString& field, const QVariant& value )
Expand Down

0 comments on commit d604a92

Please sign in to comment.