Please sign in to comment.
Don't use QgsVectorLayer::selectedFeatures() to check for a selection
in a layer This is incredibly inefficient, because selectedFeatures() actually fetches a full copy of all selected features (including all attributes and geometry). Instead use selectedFeatureIds(), which is just a list of numbers. Add warning note to docs cautioning against this practice. Fixes massive ui lockup when right clicking on a layer with selected features in the layer tree
- Loading branch information
Showing with 46 additions and 21 deletions.