summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2019-11-12 10:57:01 +0100
committerBoris Faure <billiob@gmail.com>2019-11-12 10:57:01 +0100
commit2a02a03625451ff77fa159531108b5d369c1d8f4 (patch)
treeea5a288ed804510fb3f525649cb6db62d2073765
parentb327ff2f191c62fef912bf05b27c91c908e023be (diff)
config: add error message if config is from a new Terminology
Also mark it as temporary
-rw-r--r--src/bin/config.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/config.c b/src/bin/config.c
index 3566d61..97e10a9 100644
--- a/src/bin/config.c
+++ b/src/bin/config.c
@@ -736,10 +736,12 @@ config_load(void)
736 if (config->version < CONF_VER) 736 if (config->version < CONF_VER)
737 { 737 {
738 // currently no upgrade path so reset config. 738 // currently no upgrade path so reset config.
739 ERR("config is from a newer Terminology, discard it");
739 config_del(config); 740 config_del(config);
740 config = NULL; 741 config = config_new();
742 config->temporary = EINA_TRUE;
741 } 743 }
742 /* do no thing in case the config is from a newer 744 /* do nothing in case the config is from a newer
743 * terminology, we don't want to remove it. */ 745 * terminology, we don't want to remove it. */
744 } 746 }
745 } 747 }