diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2017-04-19 09:59:39 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2017-04-19 09:59:39 +0200 |
| commit | d83f78d3787b9dc035130ebb6e056b6e2f0ca788 (patch) | |
| tree | ad64a7a7900b63bc07392c54c2d5c56917dd3545 /src/GraphicObjects/PrivateContainer.cs | |
| parent | 75424623f5a1d65581e6e911d0d00403c8fab814 (diff) | |
check if HoverWidget is removed from graphic tree
Diffstat (limited to 'src/GraphicObjects/PrivateContainer.cs')
| -rw-r--r-- | src/GraphicObjects/PrivateContainer.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/GraphicObjects/PrivateContainer.cs b/src/GraphicObjects/PrivateContainer.cs index 65eacabb..4076b5ec 100644 --- a/src/GraphicObjects/PrivateContainer.cs +++ b/src/GraphicObjects/PrivateContainer.cs @@ -53,6 +53,11 @@ namespace Crow { if (child != null) { + //check if HoverWidget is removed from Tree + if (CurrentInterface.HoverWidget != null) { + if (this.Contains (CurrentInterface.HoverWidget)) + CurrentInterface.HoverWidget = null; + } contentSize = new Size (0, 0); child.LayoutChanged -= OnChildLayoutChanges; child.Parent = null; |