From 34eb4521bc252452ae723f13c8fe5cc1ae729471 Mon Sep 17 00:00:00 2001 From: Matt Ward Date: Sun, 22 Jun 2008 08:28:25 +0000 Subject: [PATCH] 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 --- .../Project/Src/Gui/Dialogs/OptionPanels/ExternalToolPanel.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ExternalToolPanel.cs b/src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ExternalToolPanel.cs index 42d10b0f9b..2c02635a9c 100644 --- a/src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ExternalToolPanel.cs +++ b/src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ExternalToolPanel.cs @@ -149,11 +149,11 @@ namespace ICSharpCode.SharpDevelop.Gui.OptionPanels { List newlist = new List(); 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; }