Skip to content

Commit

Permalink
use right-click for extended menu in identify map tool (to be removed…
Browse files Browse the repository at this point in the history
… when a true contextual menu is implemented)
  • Loading branch information
3nids committed Sep 24, 2014
1 parent fc4fd61 commit e3f630a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/qgsmaptoolidentifyaction.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit e3f630a

Please sign in to comment.