Skip to content

Commit

Permalink
select by expression
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCaha committed Sep 27, 2024
1 parent 5cd40f7 commit 2965486
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/app/mesh/qgsmaptooleditmeshframe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,14 +283,7 @@ QgsMapToolEditMeshFrame::QgsMapToolEditMeshFrame( QgsMapCanvas *canvas )
connect( mActionSelectAllVertices, &QAction::triggered, this, [this]
{
onEditingStarted();

QList<int> verticesIndexes;
verticesIndexes.reserve( mCurrentLayer->meshVertexCount() );
for ( int i = 0; i < mCurrentLayer->meshVertexCount(); i++ )
{
verticesIndexes.append( i );
}

QList<int> verticesIndexes = mCurrentLayer->selectVerticesByExpression( QgsExpression( "true" ) );
setSelectedVertices( verticesIndexes, Qgis::SelectBehavior::SetSelection );
} );

Expand Down

0 comments on commit 2965486

Please sign in to comment.