Gui: do not create the commands StdCmdSelBack and StdCmdSelForward twice

This commit is contained in:
wmayer
2023-09-26 10:00:03 +02:00
committed by wwmayer
parent 79a74e722b
commit eec9bdcefa

View File

@@ -4009,6 +4009,7 @@ namespace Gui {
void CreateViewStdCommands()
{
// NOLINTBEGIN
CommandManager &rcCmdMgr = Application::Instance->commandManager();
// views
@@ -4085,8 +4086,6 @@ void CreateViewStdCommands()
rcCmdMgr.addCommand(new CmdViewMeasureClearAll());
rcCmdMgr.addCommand(new CmdViewMeasureToggleAll());
rcCmdMgr.addCommand(new StdCmdSelBoundingBox());
rcCmdMgr.addCommand(new StdCmdSelBack());
rcCmdMgr.addCommand(new StdCmdSelForward());
rcCmdMgr.addCommand(new StdCmdTreeViewActions());
auto hGrp = App::GetApplication().GetParameterGroupByPath("User parameter:BaseApp/Preferences/View");
@@ -4094,6 +4093,7 @@ void CreateViewStdCommands()
hGrp->SetASCII("GestureRollFwdCommand","Std_SelForward");
if(hGrp->GetASCII("GestureRollBackCommand").empty())
hGrp->SetASCII("GestureRollBackCommand","Std_SelBack");
// NOLINTEND
}
} // namespace Gui