Browse Source

The SdiWorkspaceLayout now checks that the DefaultWorkbench ToolBars property is not null before adding controls to the toolbar panel. The ToolBars property is null if nothing is specified in the .addin file under the path /SharpDevelop/Workbench/ToolBar

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@2756 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 18 years ago
parent
commit
b58eebe306
  1. 4
      src/Main/Base/Project/Src/Gui/Workbench/Layouts/SdiWorkspaceLayout.cs

4
src/Main/Base/Project/Src/Gui/Workbench/Layouts/SdiWorkspaceLayout.cs

@ -97,7 +97,9 @@ namespace ICSharpCode.SharpDevelop.Gui @@ -97,7 +97,9 @@ namespace ICSharpCode.SharpDevelop.Gui
statusStripContainer.Dock = DockStyle.Bottom;
toolBarPanel = new ToolStripPanel();
toolBarPanel.Controls.AddRange(wbForm.ToolBars);
if (wbForm.ToolBars != null) {
toolBarPanel.Controls.AddRange(wbForm.ToolBars);
}
toolBarPanel.Dock = DockStyle.Top;
dockPanel = new DockPanel();

Loading…
Cancel
Save