Browse Source

Critical bug fixed (MenuCommands didn't work)

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@317 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Daniel Grunwald 20 years ago
parent
commit
02f56d27dc
  1. 3
      src/Main/Core/Project/Src/AddInTree/AddIn/DefaultDoozers/MenuItem/Gui/MenuCommand.cs

3
src/Main/Core/Project/Src/AddInTree/AddIn/DefaultDoozers/MenuItem/Gui/MenuCommand.cs

@ -46,7 +46,8 @@ namespace ICSharpCode.Core @@ -46,7 +46,8 @@ namespace ICSharpCode.Core
void CreateCommand()
{
try {
if (codon.Properties["link"] != null) {
string link = codon.Properties["link"];
if (link != null && link.Length > 0) {
if (LinkCommandCreator == null)
throw new NotSupportedException("MenuCommand.LinkCommandCreator is not set, cannot create LinkCommands.");
menuCommand = LinkCommandCreator(codon.Properties["link"]);

Loading…
Cancel
Save