diff options
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Documents/DocumentView.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Documents/DocumentView.cs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Documents/DocumentView.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Documents/DocumentView.cs index 4653c8cc37..c942826160 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Documents/DocumentView.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Documents/DocumentView.cs @@ -363,7 +363,6 @@ namespace MonoDevelop.Ide.Gui.Documents mainShellView.LostFocus += ShellContentView_LostFocus; if (IsRoot && AttachedViews.Count > 0) { CreateAttachmentsContainer (); - InitializeAttachmentsContainer (); } else shellView = mainShellView; @@ -383,16 +382,12 @@ namespace MonoDevelop.Ide.Gui.Documents int pos = 1; foreach (var attachedView in AttachedViews) attachmentsContainer.InsertView (pos++, attachedView.CreateShellView (window)); - shellView = attachmentsContainer; - } - - private void InitializeAttachmentsContainer () - { if (activeAttachedView == this) attachmentsContainer.ActiveView = mainShellView; else attachmentsContainer.ActiveView = activeAttachedView?.ShellView; attachmentsContainer.ActiveViewChanged += AttachmentsContainer_ActiveViewChanged; + shellView = attachmentsContainer; } private void ShellContentView_GotFocus (object sender, EventArgs e) @@ -453,7 +448,6 @@ namespace MonoDevelop.Ide.Gui.Documents CreateAttachmentsContainer (); UpdateTitle (); ReplaceViewInParent (); - InitializeAttachmentsContainer (); } } else { if (attachmentsContainer != null) { |