diff options
author | Lluis Sanchez <llsan@microsoft.com> | 2017-07-18 20:36:17 +0300 |
---|---|---|
committer | Marius Ungureanu <teromario@yahoo.com> | 2017-07-18 22:18:07 +0300 |
commit | 4916c56a5a40dab92cfefa2b8a56ec1835dcd0a8 (patch) | |
tree | d6dca9700e8746240bbb0556fad59dee1ec5f7d1 | |
parent | eeb12987726572f4b75e082e55182067f5986ea3 (diff) |
Fix bug #57475 - Editor window disappaers when double switching to two column mode
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs index 3fae99b2eb..7a1eca14b3 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs @@ -336,6 +336,10 @@ namespace MonoDevelop.Ide.Commands protected override void Run () { + // Already in 2-column mode? + if (DockNotebook.ActiveNotebook?.Container?.SplitCount > 0) + return; + IdeApp.Workbench.LockActiveWindowChangeEvent (); var container = DockNotebook.ActiveNotebook.Container; var tab = DockNotebook.ActiveNotebook.CurrentTab; |