aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/calcurse.c6
-rw-r--r--src/io.c11
-rw-r--r--src/wins.c1
3 files changed, 4 insertions, 14 deletions
diff --git a/src/calcurse.c b/src/calcurse.c
index 8e1978e..920cbcd 100644
--- a/src/calcurse.c
+++ b/src/calcurse.c
@@ -272,17 +272,19 @@ static inline void key_generic_help(void)
static inline void key_generic_save(void)
{
io_save_cal(IO_SAVE_DISPLAY_BAR);
- wins_update(FLAG_STA);
+ wins_update(FLAG_ALL);
}
static inline void key_generic_reload(void)
{
if (io_reload_data()) {
+ ui_todo_load_items();
+ ui_todo_sel_reset();
do_storage(0);
notify_check_next_app(1);
ui_calendar_monthly_view_cache_set_invalid();
- wins_update(FLAG_ALL);
}
+ wins_update(FLAG_ALL);
}
static inline void key_generic_import(void)
diff --git a/src/io.c b/src/io.c
index 56783b0..9fb9434 100644
--- a/src/io.c
+++ b/src/io.c
@@ -935,7 +935,6 @@ int io_reload_data(void)
case 3:
/* FALLTHROUGH */
default:
- wins_update(FLAG_STA);
goto cleanup;
}
}
@@ -961,20 +960,10 @@ int io_reload_data(void)
recur_event_llist_init();
todo_init_list();
- /*
- * Temporarily reinitialize the todo list box without any items to make
- * sure wins_unprepare_external() does not fail when it is called after
- * executing the pre-load hook.
- */
- ui_todo_load_items();
- ui_todo_sel_reset();
-
io_load_data(NULL);
run_hook("post-load");
io_unset_modified();
- ui_todo_load_items();
- ui_todo_sel_reset();
if (show_dialogs()) {
status_mesg(reload_success, enter);
diff --git a/src/wins.c b/src/wins.c
index 55974be..bb08f08 100644
--- a/src/wins.c
+++ b/src/wins.c
@@ -613,7 +613,6 @@ void wins_unprepare_external(void)
ui_mode = UI_CURSES;
wins_refresh();
wins_resize();
- wins_update(FLAG_ALL);
if (notify_bar())
notify_start_main_thread();
if (conf.periodic_save > 0)