Skip to content

Commit e3f630a

Browse files
committedSep 24, 2014
use right-click for extended menu in identify map tool (to be removed when a true contextual menu is implemented)
1 parent fc4fd61 commit e3f630a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎src/app/qgsmaptoolidentifyaction.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ void QgsMapToolIdentifyAction::canvasReleaseEvent( QMouseEvent *e )
119119

120120
identifyMenu()->setResultsIfExternalAction( false );
121121

122-
bool extendedMenu = e->modifiers() == Qt::ShiftModifier;
122+
// enable the right click for extended menu so it behaves as a contextual menu
123+
// this would be removed when a true contextual menu is brought in QGIS
124+
bool extendedMenu = e->modifiers() == Qt::ShiftModifier || e->button() == Qt::RightButton ;
123125
identifyMenu()->setExecWithSingleResult( extendedMenu );
124126
identifyMenu()->setShowFeatureActions( extendedMenu );
125127
IdentifyMode mode = extendedMenu ? LayerSelection : DefaultQgsSetting;

0 commit comments

Comments
 (0)
Please sign in to comment.