Skip to content

Commit

Permalink
fix #2947
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Dec 7, 2023
1 parent 2a37b1b commit efdb598
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/attributes/attributecontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1056,15 +1056,13 @@ bool AttributeController::deleteFeature()
if ( !mFeatureLayerPair.layer() )
return false;

bool rv = true;

if ( !startEditing() )
{
rv = false;
return false;
}

bool isDeleted = mFeatureLayerPair.layer()->deleteFeature( mFeatureLayerPair.feature().id() );
rv = commit();
bool rv = commit();

if ( !isDeleted || !rv )
{
Expand Down

1 comment on commit efdb598

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 23.12.493211 just submitted!

Please sign in to comment.