Skip to content
Permalink
Browse files

always show context menu for select by polygon

  • Loading branch information
PeterPetrik committed Sep 14, 2018
1 parent dc77474 commit 1708b2db0d5f25471fae41f87964e218649a5ff1
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/qgsmaptoolselectionhandler.cpp
@@ -104,6 +104,7 @@ QgsMapToolSelectionHandler::QgsMapToolSelectionHandler( QgsMapCanvas *canvas, Qg
, mIdentifyMenu( new QgsIdentifyMenu( mCanvas ) )
{
mIdentifyMenu->setAllowMultipleReturn( false );
mIdentifyMenu->setExecWithSingleResult( true );
}

QgsMapToolSelectionHandler::~QgsMapToolSelectionHandler()
@@ -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 )

0 comments on commit 1708b2d

Please sign in to comment.
You can’t perform that action at this time.