]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
config: start wizard only when the main config file does not exist
authorJaroslav Kysela <perex@perex.cz>
Wed, 20 Jan 2016 18:28:27 +0000 (19:28 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 20 Jan 2016 18:28:27 +0000 (19:28 +0100)
src/config.c

index f9da50a3c18310de5fbe3b5692f7dd8ed94323b1..223d5b92513561b26824048833db9343ddd964f7 100644 (file)
@@ -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");