Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémie Laval <jeremie.laval@gmail.com>2014-11-19 22:44:46 +0300
committerJérémie Laval <jeremie.laval@gmail.com>2014-11-19 22:54:44 +0300
commit2ea05580a8151a2e66832707e83e34d62ac1d9e7 (patch)
treee53edac469cda89684878b88ab82f60c46b11f63 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui
parent6256983035647a8876d14145caaa3180f00f91f2 (diff)
[Ide] Completely remove subview switching when opening documents.
Introduced in 33716a9 (circa 2006), partially removed in 24f6df6 (circa 2009) and never really touched on since. This actually causes issues with view content that have multiple subviews (like the Android designer) which set their own active subview before that point.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs2
1 files changed, 0 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs
index 39679f1573..2c3f5bbfd0 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs
@@ -467,7 +467,6 @@ namespace MonoDevelop.Ide.Gui
Counters.OpenDocumentTimer.Trace ("Look for open document");
foreach (Document doc in Documents) {
IBaseViewContent vcFound = null;
- int vcIndex = 0;
//search all ViewContents to see if they can "re-use" this filename
if (doc.Window.ViewContent.CanReuseView (info.FileName))
@@ -497,7 +496,6 @@ namespace MonoDevelop.Ide.Gui
if (info.Options.HasFlag (OpenDocumentOptions.BringToFront)) {
doc.Select ();
- doc.Window.SwitchView (vcIndex);
doc.Window.SelectWindow ();
NavigationHistoryService.LogActiveDocument ();
}