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:
authorLluis Sanchez Gual <lluis@novell.com>2011-02-09 13:10:58 +0300
committerLluis Sanchez Gual <lluis@novell.com>2011-02-09 13:10:58 +0300
commitddae19b75436455641d9ec9e50278c0f70c0a90e (patch)
tree6d212833b3332bf4ce51151d517d76371b4af574 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels
parentf928f17f482f663ca557afada7387cfd0481653a (diff)
Custom command fixes
Improved error message when a custom command fails. Quote the command path when selecting a path which has spaces on it.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/CustomCommandWidget.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/CustomCommandWidget.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/CustomCommandWidget.cs
index d760cd356d..e78d025a65 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/CustomCommandWidget.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/CustomCommandWidget.cs
@@ -111,6 +111,8 @@ namespace MonoDevelop.Ide.Projects.OptionPanels
entryCommand.Text = FileService.AbsoluteToRelativePath (entry.BaseDirectory, dlg.SelectedFile);
else
entryCommand.Text = dlg.SelectedFile;
+ if (entryCommand.Text.IndexOf (' ') != -1)
+ entryCommand.Text = '"' + entryCommand.Text + '"';
}
protected virtual void OnEntryCommandChanged(object sender, System.EventArgs e)