From: Jaroslav Kysela Date: Wed, 20 Jan 2016 18:28:27 +0000 (+0100) Subject: config: start wizard only when the main config file does not exist X-Git-Tag: v4.2.1~1138 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5be80cabf69467d54485c58fb3bce3aa212d7e30;p=thirdparty%2Ftvheadend.git config: start wizard only when the main config file does not exist --- diff --git a/src/config.c b/src/config.c index f9da50a3c..223d5b925 100644 --- a/src/config.c +++ b/src/config.c @@ -1627,7 +1627,6 @@ config_boot ( const char *path, gid_t gid, uid_t uid ) memset(&config, 0, sizeof(config)); config.idnode.in_class = &config_class; config.ui_quicktips = 1; - config.wizard = strdup("hello"); config.info_area = strdup("login,storage,time"); config.cookie_expires = 7; config.dscp = -1; @@ -1678,6 +1677,7 @@ config_boot ( const char *path, gid_t gid, uid_t uid ) config2 = hts_settings_load("config"); if (!config2) { tvhlog(LOG_DEBUG, "config", "no configuration, loading defaults"); + config.wizard = strdup("hello"); config_newcfg = 1; } else { f = htsmsg_field_find(config2, "language");