diff options
author | Lluis Sanchez <lluis@novell.com> | 2009-05-06 14:29:26 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2009-05-06 14:29:26 +0400 |
commit | ee324303819dea852e0a322b594173c10c3cb39f (patch) | |
tree | e698c3b7fad26ac362b70fc9db077e9dd6c83f5e /main/src/core | |
parent | 69d61c11e83952d6d5ea157090ac645b71fadab4 (diff) |
* MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs: Don't allow
removing autodetected runtimes.
svn path=/trunk/monodevelop/; revision=133641
Diffstat (limited to 'main/src/core')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/ChangeLog | 5 | ||||
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/ChangeLog b/main/src/core/MonoDevelop.Ide/ChangeLog index b3b85ce800..3c446b7c12 100644 --- a/main/src/core/MonoDevelop.Ide/ChangeLog +++ b/main/src/core/MonoDevelop.Ide/ChangeLog @@ -1,3 +1,8 @@ +2009-05-06 Lluis Sanchez Gual <lluis@novell.com> + + * MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs: Don't + allow removing autodetected runtimes. + 2009-05-05 Michael Hutchinson <mhutchinson@novell.com> * MonoDevelop.Ide.addin.xml: More Mac shortcuts. diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs index a7c7e4453c..db1bce4181 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/MonoRuntimePanel.cs @@ -181,7 +181,8 @@ namespace MonoDevelop.Ide.Gui.OptionPanels TreeIter it; if (tree.Selection.GetSelected (out it)) { object ob = store.GetValue (it, 1); - buttonRemove.Sensitive = !(ob is TargetRuntime && ((TargetRuntime)ob).IsRunning); + MonoTargetRuntime tr = ob as MonoTargetRuntime; + buttonRemove.Sensitive = tr != null && tr.UserDefined; buttonDefault.Sensitive = true; } else { buttonRemove.Sensitive = false; |