diff options
-rw-r--r-- | main/src/addins/MonoDevelop.MacDev/MonoDevelop.MacDev.PlistEditor/CustomPropertiesWidget.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/main/src/addins/MonoDevelop.MacDev/MonoDevelop.MacDev.PlistEditor/CustomPropertiesWidget.cs b/main/src/addins/MonoDevelop.MacDev/MonoDevelop.MacDev.PlistEditor/CustomPropertiesWidget.cs index d691917576..3c423dafcf 100644 --- a/main/src/addins/MonoDevelop.MacDev/MonoDevelop.MacDev.PlistEditor/CustomPropertiesWidget.cs +++ b/main/src/addins/MonoDevelop.MacDev/MonoDevelop.MacDev.PlistEditor/CustomPropertiesWidget.cs @@ -357,10 +357,9 @@ namespace MonoDevelop.MacDev.PlistEditor var obj = (PObject)tree_model.GetValue (iter, 1); var key = (PListScheme.SchemaItem) tree_model.GetValue (iter, 2) ?? PListScheme.Key.Empty; - renderer.Sensitive = !(obj is PDictionary || obj is PArray || obj is PData); + renderer.Sensitive = obj != null && !(obj is PDictionary || obj is PArray || obj is PData); renderer.Editable = renderer.Sensitive; - if (obj == null || !renderer.Sensitive) { - renderer.Editable = false; + if (!renderer.Sensitive) { renderer.Text = ""; return; } |