Skip to content

Commit

Permalink
Safeguard from triggering needless feature gathering when referincing…
Browse files Browse the repository at this point in the history
… feature list model gets passed the same feature
  • Loading branch information
nirvn committed Oct 15, 2023
1 parent 9d606de commit dfa8a63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/referencingfeaturelistmodel.cpp
Expand Up @@ -78,6 +78,9 @@ QVariant ReferencingFeatureListModel::data( const QModelIndex &index, int role )

void ReferencingFeatureListModel::setFeature( const QgsFeature &feature )
{
if ( mFeature == feature )
return;

mFeature = feature;
reload();
}
Expand Down

1 comment on commit dfa8a63

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please sign in to comment.