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:
authorVsevolod Kukol <sevoku@xamarin.com>2016-05-04 14:26:32 +0300
committerVsevolod Kukol <sevoku@xamarin.com>2016-05-04 14:26:32 +0300
commit6e708d69be767aec66d55730529662cf5fbcde06 (patch)
tree998758c034dc78123ce98e28da23ac30fdafc2f6 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands
parent4e41c6552dd91b5640cc5b4f2863dd937b71624f (diff)
[Ide] Remove top separator from Pad selection menu
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs8
1 files changed, 5 insertions, 3 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 5032431ed0..f4a13b65ff 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ViewCommands.cs
@@ -113,9 +113,11 @@ namespace MonoDevelop.Ide.Commands
lastListGroup.TryGetValue (list, out group);
if (group != pad.Group) {
lastListGroup [list] = pad.Group;
- CommandInfo sep = new CommandInfo ("-");
- sep.IsArraySeparator = true;
- list.Insert (atIndex, sep, null);
+ if (atIndex > 0) {
+ CommandInfo sep = new CommandInfo ("-");
+ sep.IsArraySeparator = true;
+ list.Insert (atIndex, sep, null);
+ }
}
}
}