Skip to content

Commit 2d71419

Browse files
committedOct 3, 2017
Save active button in settings
1 parent 97eff21 commit 2d71419

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎src/app/qgisapp.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12499,6 +12499,14 @@ void QgisApp::toolButtonActionTriggered( QAction *action )
1249912499
settings.setValue( QStringLiteral( "UI/selectTool" ), 3 );
1250012500
else if ( action == mActionSelectFreehand )
1250112501
settings.setValue( QStringLiteral( "UI/selectTool" ), 4 );
12502+
else if ( action == mActionSelectByForm )
12503+
settings.setValue( QStringLiteral( "UI/selectionTool" ), 0 );
12504+
else if ( action == mActionSelectByExpression )
12505+
settings.setValue( QStringLiteral( "UI/selectionTool" ), 1 );
12506+
else if ( action == mActionSelectAll )
12507+
settings.setValue( QStringLiteral( "UI/selectionTool" ), 2 );
12508+
else if ( action == mActionInvertSelection )
12509+
settings.setValue( QStringLiteral( "UI/selectionTool" ), 3 );
1250212510
else if ( action == mActionMeasure )
1250312511
settings.setValue( QStringLiteral( "UI/measureTool" ), 0 );
1250412512
else if ( action == mActionMeasureArea )

0 commit comments

Comments
 (0)
Please sign in to comment.