Browse Source

The external tools options page no longer shows an invalid tool error message for a command such as ${SdkToolPath:ILDasm.exe}.

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@3129 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
Matt Ward 18 years ago
parent
commit
34eb4521bc
  1. 4
      src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ExternalToolPanel.cs

4
src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ExternalToolPanel.cs

@ -149,11 +149,11 @@ namespace ICSharpCode.SharpDevelop.Gui.OptionPanels @@ -149,11 +149,11 @@ namespace ICSharpCode.SharpDevelop.Gui.OptionPanels
{
List<ExternalTool> newlist = new List<ExternalTool>();
foreach (ExternalTool tool in ((ListBox)ControlDictionary["toolListBox"]).Items) {
if (!FileUtility.IsValidPath(tool.Command)) {
if (!FileUtility.IsValidPath(StringParser.Parse(tool.Command))) {
MessageService.ShowError(String.Format("The command of tool \"{0}\" is invalid.", tool.MenuCommand));
return false;
}
if ((tool.InitialDirectory != "") && (!FileUtility.IsValidPath(tool.InitialDirectory))) {
if ((tool.InitialDirectory != String.Empty) && (!FileUtility.IsValidPath(tool.InitialDirectory))) {
MessageService.ShowError(String.Format("The working directory of tool \"{0}\" is invalid.", tool.MenuCommand));
return false;
}

Loading…
Cancel
Save