Skip to content

Commit

Permalink
Fix build for Qt<5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Apr 6, 2017
1 parent 0b41425 commit 67947b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/nodetool/qgsnodetool2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,8 @@ void QgsNodeTool2::cadCanvasPressEvent( QgsMapMouseEvent *e )
if ( mLastMouseMoveMatch.isValid() && mLastMouseMoveMatch.layer() )
{
QMenu menu;
menu.addAction( "Node editor", this, &QgsNodeTool2::showNodeEditor );
QAction *actionNodeEditor = menu.addAction( "Node editor" );
connect( actionNodeEditor, &QAction::triggered, this, &QgsNodeTool2::showNodeEditor );
menu.exec( mCanvas->mapToGlobal( e->pos() ) );
}
}
Expand Down

0 comments on commit 67947b9

Please sign in to comment.