diff options
author | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2015-01-23 00:49:11 +0300 |
---|---|---|
committer | Michael Hutchinson <m.j.hutchinson@gmail.com> | 2015-01-26 18:53:31 +0300 |
commit | f28abb85d24acea0e176626fb77f7aa782f795b8 (patch) | |
tree | b6f3a63c6c5598373a20acaf1b4bbb021de24a3a /main/src/core/MonoDevelop.Ide/MonoDevelop.Components | |
parent | f55b70206d49d40e9a04e2b1bfe2e13097f0ec1c (diff) |
[Ide] Fix case where relative path entry could be absolute
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Components/BaseFileEntry.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/BaseFileEntry.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/BaseFileEntry.cs index 7be91cb905..22273a734e 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/BaseFileEntry.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components/BaseFileEntry.cs @@ -104,7 +104,7 @@ namespace MonoDevelop.Components loading = true; if (!string.IsNullOrEmpty (value) && displayAsRelativePath) value = ((FilePath)value).ToRelative (DefaultPath); - pathEntry.Text = value; + pathEntry.Text = value ?? ""; loading = false; } } @@ -132,7 +132,7 @@ namespace MonoDevelop.Components string path = ShowBrowseDialog (BrowserTitle, startIn); if (path != null) - pathEntry.Text = path; + Path = path; } void OnTextChanged (object o, EventArgs args) |