diff options
author | Lukas Fleischer <lfleischer@calcurse.org> | 2017-09-08 20:53:17 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2017-09-08 21:21:45 +0200 |
commit | f69698569ff79965580c3a8c23d9e59fc1810fc7 (patch) | |
tree | c37cf8d3c549cc113917230daae74940029702e1 /src | |
parent | 380124c7a21fc216e760e8b925d8738292b725f8 (diff) | |
download | calcurse-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>
Diffstat (limited to 'src')
-rw-r--r-- | src/io.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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"); } |