Structure toolbar : put Link in the command group.
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user