]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
profile: default profile must be enabled
authorJaroslav Kysela <perex@perex.cz>
Thu, 9 Oct 2014 18:33:28 +0000 (20:33 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 9 Oct 2014 18:33:28 +0000 (20:33 +0200)
src/profile.c

index 631f032eb6e81a98dab2b0a072446020b5d559b2..2a2bd908722cc277bcab451bb7e0b175874da831 100644 (file)
@@ -125,6 +125,8 @@ profile_class_save ( idnode_t *in )
 {
   profile_t *pro = (profile_t *)in;
   htsmsg_t *c = htsmsg_create_map();
+  if (pro == profile_default)
+    pro->pro_enabled = 1;
   idnode_save(in, c);
   if (pro->pro_shield)
     htsmsg_add_bool(c, "shield", 1);