summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2011-03-15 13:04:01 +1100
committerRobert Ancell <robert.ancell@canonical.com>2011-03-15 13:04:01 +1100
commit0c5d134e737ba1f871d520852da7fdf8304fb992 (patch)
treead335221e6835e3ac7faf9805788786ba4f5cd4e
parentf13345d4631da443958f5364bd1eabe08ff9d00b (diff)
downloaddconf-0c5d134e737ba1f871d520852da7fdf8304fb992.tar.gz
editor: Fix bug where enumerations without value set weren't recognised as enumerations
-rw-r--r--editor/dconf-model.vala6
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;