From 54ac82b4f371d034a522c490e706ad109f805f9f Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Fri, 7 Jan 2022 13:54:39 +0100 Subject: [PATCH] make actions exclusive --- src/app/qgisapp.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/qgisapp.cpp b/src/app/qgisapp.cpp index c25078002455..13e7c8d88c08 100644 --- a/src/app/qgisapp.cpp +++ b/src/app/qgisapp.cpp @@ -3387,6 +3387,10 @@ void QgisApp::createToolBars() digitizeMenu->addAction( mActionDigitizeWithSegment ); digitizeMenu->addAction( mActionDigitizeWithCurve ); digitizeMenu->addAction( mActionStreamDigitize ); + QActionGroup *actionGroup = new QActionGroup( digitizeMenu ); + actionGroup->addAction( mActionDigitizeWithSegment ); + actionGroup->addAction( mActionDigitizeWithCurve ); + actionGroup->addAction( mActionStreamDigitize ); mActionStreamDigitize->setShortcut( tr( "R", "Keyboard shortcut: toggle stream digitizing" ) ); digitizeMenu->addSeparator();