Structure toolbar : put Link in the command group.

This commit is contained in:
Paddle
2023-09-20 12:11:10 +02:00
parent 730d471fb1
commit a92c528c9e
2 changed files with 3 additions and 3 deletions

View File

@@ -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());

View File

@@ -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 );