Trying to get things to behave nicely with the requirement that GuiWidgets clear their parent when the are closed or removed.

This commit is contained in:
james jones 2014-07-01 12:09:35 -07:00
parent 6ce3533668
commit bff2e01fad
3 changed files with 21 additions and 1 deletions

View file

@ -64,6 +64,11 @@ namespace MatterHackers.MatterControl
{
protected override void AddChildElements()
{
if (HelpTextWidget.Instance.Parent != null)
{
HelpTextWidget.Instance.Parent.RemoveChild(HelpTextWidget.Instance);
}
this.AddChild(HelpTextWidget.Instance);
}