Skip to content
Permalink
Browse files

use right-click for extended menu in identify map tool (to be removed…

… when a true contextual menu is implemented)
  • Loading branch information
3nids committed Sep 24, 2014
1 parent fc4fd61 commit e3f630adb1ee7ed708d25fa3495eee8022c2b2c2
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/app/qgsmaptoolidentifyaction.cpp
@@ -119,7 +119,9 @@ void QgsMapToolIdentifyAction::canvasReleaseEvent( QMouseEvent *e )

identifyMenu()->setResultsIfExternalAction( false );

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

0 comments on commit e3f630a

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