diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-10-04 13:00:55 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2015-10-04 13:00:55 +0200 |
commit | e9b06dcd5df3f22bc3a7acd5c57a4bfdf4ef38f5 (patch) | |
tree | 6e9494073395f49fb3eec61d2c5ae40f5f3de2af /src/pies/load.vala | |
parent | 19fe9cfe9a84ba453271d8d8e32f4aa9fe2be14e (diff) | |
parent | 7556967bf57453d412a8f18633599f38806f8620 (diff) |
Merge tag 'upstream/0.6.7'
Upstream version 0.6.7
Diffstat (limited to 'src/pies/load.vala')
-rw-r--r-- | src/pies/load.vala | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/pies/load.vala b/src/pies/load.vala index 7402094..0dfb423 100644 --- a/src/pies/load.vala +++ b/src/pies/load.vala @@ -192,17 +192,14 @@ namespace Pies { string attr_name = attribute->name.down(); string attr_content = attribute->children->content; - switch (attr_name) { - case "type": - type = attr_content; - break; - default: - warning("Invalid attribute \"" + attr_name + "\" in <group> element in pies.conf!"); - break; + if (attr_name == "type") { + type = attr_content; + break; } } ActionGroup group = GroupRegistry.create_group(type, pie.id); + group.on_load(slice); if (group != null) pie.add_group(group); } |