From 0c5d134e737ba1f871d520852da7fdf8304fb992 Mon Sep 17 00:00:00 2001 From: Robert Ancell Date: Tue, 15 Mar 2011 13:04:01 +1100 Subject: editor: Fix bug where enumerations without value set weren't recognised as enumerations --- editor/dconf-model.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/editor/dconf-model.vala b/editor/dconf-model.vala index 48887fe..f2ca1be 100644 --- a/editor/dconf-model.vala +++ b/editor/dconf-model.vala @@ -24,12 +24,12 @@ public class Key : GLib.Object private set {} public get { - if (_value != null) + if (value != null) { - if (_value.is_of_type(VariantType.STRING) && has_schema && schema.enum_name != null) + if (value.is_of_type(VariantType.STRING) && has_schema && schema.enum_name != null) return ""; else - return _value.get_type_string(); + return value.get_type_string(); } else return schema.type; -- cgit v1.2.1