From 567925e4421b327eaee933a04d32c03bc8fc2c99 Mon Sep 17 00:00:00 2001 From: Paddle Date: Wed, 20 Sep 2023 12:11:10 +0200 Subject: [PATCH] Structure toolbar : put Link in the command group. --- src/Gui/CommandLink.cpp | 4 ++-- src/Gui/Workbench.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Gui/CommandLink.cpp b/src/Gui/CommandLink.cpp index edb69c974e..da5df19bf1 100644 --- a/src/Gui/CommandLink.cpp +++ b/src/Gui/CommandLink.cpp @@ -214,7 +214,7 @@ StdCmdLinkMake::StdCmdLinkMake() } bool StdCmdLinkMake::isActive() { - return !!App::GetApplication().getActiveDocument(); + return App::GetApplication().getActiveDocument(); } void StdCmdLinkMake::activated(int) { @@ -878,6 +878,7 @@ public: eType = AlterDoc; bCanLog = false; + addCommand(new StdCmdLinkMake()); addCommand(new StdCmdLinkMakeRelative()); addCommand(new StdCmdLinkReplace()); addCommand(new StdCmdLinkUnlink()); @@ -898,7 +899,6 @@ namespace Gui { void CreateLinkCommands() { CommandManager &rcCmdMgr = Application::Instance->commandManager(); - rcCmdMgr.addCommand(new StdCmdLinkMake()); rcCmdMgr.addCommand(new StdCmdLinkActions()); rcCmdMgr.addCommand(new StdCmdLinkMakeGroup()); rcCmdMgr.addCommand(new StdCmdLinkSelectActions()); diff --git a/src/Gui/Workbench.cpp b/src/Gui/Workbench.cpp index b1230a6101..c267fc81ff 100644 --- a/src/Gui/Workbench.cpp +++ b/src/Gui/Workbench.cpp @@ -800,7 +800,7 @@ ToolBarItem* StdWorkbench::setupToolBars() const // Structure auto structure = new ToolBarItem( root ); structure->setCommand("Structure"); - *structure << "Std_Part" << "Std_Group" << "Std_LinkMake" << "Std_LinkActions"; + *structure << "Std_Part" << "Std_Group" << "Std_LinkActions"; // Help auto help = new ToolBarItem( root );