Skip to content

Commit

Permalink
always show context menu for select by polygon
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Sep 14, 2018
1 parent dc77474 commit 1708b2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgsmaptoolselectionhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ QgsMapToolSelectionHandler::QgsMapToolSelectionHandler( QgsMapCanvas *canvas, Qg
, mIdentifyMenu( new QgsIdentifyMenu( mCanvas ) )
{
mIdentifyMenu->setAllowMultipleReturn( false );
mIdentifyMenu->setExecWithSingleResult( true );
}

QgsMapToolSelectionHandler::~QgsMapToolSelectionHandler()
Expand Down Expand Up @@ -255,7 +256,7 @@ void QgsMapToolSelectionHandler::selectPolygonPressEvent( QgsMapMouseEvent *e )
double x = mapPoint.x(), y = mapPoint.y();
double sr = QgsMapTool::searchRadiusMU( mCanvas );

const QList<QgsMapLayer*> layers = mCanvas->layers();
const QList<QgsMapLayer *> layers = mCanvas->layers();
for ( auto layer : layers )
{
if ( layer->type() == QgsMapLayer::VectorLayer )
Expand Down

0 comments on commit 1708b2d

Please sign in to comment.