Browse Source

Fix duplicate InputBindingCategory in /MainMenu/View

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/shortcuts@4648 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts^2
Sergej Andrejev 16 years ago
parent
commit
592210be6e
  1. 2
      src/Main/Base/Project/Src/Commands/MenuItemBuilders.cs

2
src/Main/Base/Project/Src/Commands/MenuItemBuilders.cs

@ -539,7 +539,7 @@ namespace ICSharpCode.SharpDevelop.Commands @@ -539,7 +539,7 @@ namespace ICSharpCode.SharpDevelop.Commands
inputBindingInfo.RoutedCommandName = routedCommandName;
inputBindingInfo.DefaultGestures.AddRange(gestures);
var categoryPath = "/MainMenu/View" + (Category == padContent.Category && padContent.Category != "Main" ? "/" + padContent.Class : "");
var categoryPath = "/MainMenu/View" + (Category == padContent.Category && padContent.Category != "Main" ? "/" + padContent.Category : "");
var category = ICSharpCode.Core.Presentation.CommandManager.GetInputBindingCategory(categoryPath, false);
if(category == null) {
category = new InputBindingCategory(categoryPath, padContent.Category);

Loading…
Cancel
Save