aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-07-12 18:06:55 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-07-13 00:13:14 +0200
commitde61f9ce5b2c10692ce9b7850e2979c47dd338fb (patch)
tree94b5f4c0511c0fe8121a71e8419dab1048719592
parentefe5112a8f110bc17def77c930d5e3dcb6fe5c09 (diff)
downloadxK-de61f9ce5b2c10692ce9b7850e2979c47dd338fb.tar.gz
xK-de61f9ce5b2c10692ce9b7850e2979c47dd338fb.tar.xz
xK-de61f9ce5b2c10692ce9b7850e2979c47dd338fb.zip
degesch: don't save on quit after a parse error
-rw-r--r--degesch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index 18132a3..5ef0bc2 100644
--- a/degesch.c
+++ b/degesch.c
@@ -8886,6 +8886,10 @@ load_configuration (struct app_context *ctx)
{
log_global_error (ctx, "#s", e->message);
error_free (e);
+
+ // That would be somewhat undesired
+ config_item_get (ctx->config.root, "behaviour.save_on_quit", NULL)
+ ->value.boolean = false;
}
if (root)