diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2011-03-15 13:04:01 +1100 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2011-03-15 13:04:01 +1100 |
commit | 0c5d134e737ba1f871d520852da7fdf8304fb992 (patch) | |
tree | ad335221e6835e3ac7faf9805788786ba4f5cd4e | |
parent | f13345d4631da443958f5364bd1eabe08ff9d00b (diff) | |
download | dconf-0c5d134e737ba1f871d520852da7fdf8304fb992.tar.gz |
editor: Fix bug where enumerations without value set weren't recognised as enumerations
-rw-r--r-- | editor/dconf-model.vala | 6 |
1 files 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 "<enum>"; else - return _value.get_type_string(); + return value.get_type_string(); } else return schema.type; |