Skip to content
Permalink
Browse files

Save active button in settings

  • Loading branch information
DelazJ committed Oct 3, 2017
1 parent 97eff21 commit 2d7141996e0370c55df06f0dc867152edb7fc775
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/app/qgisapp.cpp
@@ -12499,6 +12499,14 @@ void QgisApp::toolButtonActionTriggered( QAction *action )
settings.setValue( QStringLiteral( "UI/selectTool" ), 3 );
else if ( action == mActionSelectFreehand )
settings.setValue( QStringLiteral( "UI/selectTool" ), 4 );
else if ( action == mActionSelectByForm )
settings.setValue( QStringLiteral( "UI/selectionTool" ), 0 );
else if ( action == mActionSelectByExpression )
settings.setValue( QStringLiteral( "UI/selectionTool" ), 1 );
else if ( action == mActionSelectAll )
settings.setValue( QStringLiteral( "UI/selectionTool" ), 2 );
else if ( action == mActionInvertSelection )
settings.setValue( QStringLiteral( "UI/selectionTool" ), 3 );
else if ( action == mActionMeasure )
settings.setValue( QStringLiteral( "UI/measureTool" ), 0 );
else if ( action == mActionMeasureArea )

0 comments on commit 2d71419

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