Skip to content

Commit

Permalink
Remove assert: return is false if editing is aborted
Browse files Browse the repository at this point in the history
Fixes #41295
  • Loading branch information
elpaso committed Feb 5, 2021
1 parent 590b7f4 commit 9cb3719
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 9cb3719

Please sign in to comment.