diff options
-rw-r--r-- | src/calcurse.c | 1 | ||||
-rw-r--r-- | src/io.c | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/calcurse.c b/src/calcurse.c index 920cbcd..5a08d53 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -626,7 +626,6 @@ int main(int argc, char **argv) io_load_data(NULL); run_hook("post-load"); - io_unset_modified(); wins_slctd_set(conf.default_panel); wins_resize(); /* @@ -905,6 +905,7 @@ void io_load_data(struct item_filter *filter) io_load_app(filter); io_load_todo(filter); io_mutex_unlock(); + io_unset_modified(); } int io_reload_data(void) @@ -958,9 +959,8 @@ int io_reload_data(void) todo_init_list(); io_load_data(NULL); - run_hook("post-load"); - io_unset_modified(); + run_hook("post-load"); if (show_dialogs()) { status_mesg(reload_success, enter); |