Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
DVR: move record start / DVR config field from advanced to basic view…
… level, fixes #3389
  • Loading branch information
perexg committed Dec 6, 2015
1 parent acf4b86 commit c3a38bb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/dvr/dvr_db.c
Expand Up @@ -1961,6 +1961,15 @@ dvr_entry_class_start_set(void *o, const void *v)

static uint32_t
dvr_entry_class_start_opts(void *o)
{
dvr_entry_t *de = (dvr_entry_t *)o;
if (de && !dvr_entry_is_editable(de))
return PO_RDONLY;
return 0;
}

static uint32_t
dvr_entry_class_config_name_opts(void *o)
{
dvr_entry_t *de = (dvr_entry_t *)o;
if (de && !dvr_entry_is_editable(de))
Expand Down Expand Up @@ -2819,7 +2828,7 @@ const idclass_t dvr_entry_class = {
.get = dvr_entry_class_config_name_get,
.list = dvr_entry_class_config_name_list,
.rend = dvr_entry_class_config_name_rend,
.get_opts = dvr_entry_class_start_opts,
.get_opts = dvr_entry_class_config_name_opts,
},
{
.type = PT_STR,
Expand Down

0 comments on commit c3a38bb

Please sign in to comment.