summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@calcurse.org>2017-09-08 20:53:17 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2017-09-08 21:21:45 +0200
commitf69698569ff79965580c3a8c23d9e59fc1810fc7 (patch)
treec37cf8d3c549cc113917230daae74940029702e1
parent380124c7a21fc216e760e8b925d8738292b725f8 (diff)
downloadcalcurse-f69698569ff79965580c3a8c23d9e59fc1810fc7.tar.gz
calcurse-f69698569ff79965580c3a8c23d9e59fc1810fc7.zip
Recompute hashes after saving
After saving the data files, we need to recompute and store the hashes to make sure the updated contents is reflected. Signed-off-by: Lukas Fleischer <lfleischer@calcurse.org>
-rw-r--r--src/io.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/io.c b/src/io.c
index 4d80e3f..d61f4c6 100644
--- a/src/io.c
+++ b/src/io.c
@@ -588,6 +588,9 @@ void io_save_cal(enum save_display display)
keys_wait_for_any_key(win[KEY].p);
}
+ io_compute_hash(path_apts, apts_sha1);
+ io_compute_hash(path_todo, todo_sha1);
+
io_mutex_unlock();
run_hook("post-save");
}