Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 452f8be

Browse files
authored
Merge pull request #8950 from mono/doc-control-dispose
[Ide] Fix document tabs container disposing widgets on mode change
2 parents 2d87e57 + 1f035d5 commit 452f8be

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Shell/GtkShellDocumentViewContainerTabs.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,6 @@ sealed class GtkShellDocumentTab : Tab
102102
public GtkShellDocumentTab (Tabstrip parent, string label) : base (parent, label)
103103
{
104104
}
105-
106-
protected override void OnDispose ()
107-
{
108-
if (Tag is IShellDocumentViewItem disposable)
109-
disposable.Dispose ();
110-
111-
base.OnDispose ();
112-
}
113105
}
114106

115107
internal static void UpdateTab (Tab tab, string label, Xwt.Drawing.Image icon, string accessibilityDescription)

0 commit comments

Comments
 (0)