billiob pushed a commit to branch master.

http://git.enlightenment.org/apps/terminology.git/commit/?id=2a02a03625451ff77fa159531108b5d369c1d8f4

commit 2a02a03625451ff77fa159531108b5d369c1d8f4
Author: Boris Faure <bill...@gmail.com>
Date:   Tue Nov 12 10:57:01 2019 +0100

    config: add error message if config is from a new Terminology
    
    Also mark it as temporary
---
 src/bin/config.c | 6 ++++--
 1 file 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)
                   if (config->version < CONF_VER)
                     {
                        // currently no upgrade path so reset config.
+                       ERR("config is from a newer Terminology, discard it");
                        config_del(config);
-                       config = NULL;
+                       config = config_new();
+                       config->temporary = EINA_TRUE;
                     }
-                  /* do no thing in case the config is from a newer
+                  /* do nothing in case the config is from a newer
                    * terminology, we don't want to remove it. */
                }
           }

-- 


Reply via email to