Skip to content

Commit

Permalink
Merge pull request #41375 from elpaso/bugfix-gh41295-relation-crash
Browse files Browse the repository at this point in the history
Remove assert: return is false if editing is aborted
  • Loading branch information
elpaso committed Feb 6, 2021
2 parents 15267f9 + 9cb3719 commit 20a066d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/qgsabstractrelationeditorwidget.cpp
Expand Up @@ -260,8 +260,7 @@ void QgsAbstractRelationEditorWidget::addFeature( const QgsGeometry &geometry )
keyAttrs.insert( fields.indexFromName( fieldPair.referencingField() ), mFeature.attribute( fieldPair.referencedField() ) );
}

bool result = vlTools->addFeature( mRelation.referencingLayer(), keyAttrs, geometry );
Q_ASSERT( result );
vlTools->addFeature( mRelation.referencingLayer(), keyAttrs, geometry );
}
}

Expand Down

0 comments on commit 20a066d

Please sign in to comment.