Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Save active button in settings
  • Loading branch information
DelazJ committed Oct 3, 2017
1 parent 97eff21 commit 2d71419
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -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 )
Expand Down

0 comments on commit 2d71419

Please sign in to comment.