From 7556967bf57453d412a8f18633599f38806f8620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 4 Oct 2015 13:00:51 +0200 Subject: Imported Upstream version 0.6.7 --- src/pies/load.vala | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/pies/load.vala') 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 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); } -- cgit v1.2.3