diff options
Diffstat (limited to 'src/list_window.c')
-rw-r--r-- | src/list_window.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/list_window.c b/src/list_window.c index 6492d4153..db14ff96f 100644 --- a/src/list_window.c +++ b/src/list_window.c @@ -371,7 +371,7 @@ list_window_push_state(list_window_state_t *state, list_window_t *lw) } } -void +bool list_window_pop_state(list_window_state_t *state, list_window_t *lw) { if( state && state->list ) @@ -383,7 +383,7 @@ list_window_pop_state(list_window_state_t *state, list_window_t *lw) state->list->data = NULL; state->list = g_list_delete_link(state->list, state->list); } -} - - + // return TRUE if there are still states in the list + return (state && state->list) ? TRUE : FALSE; +} |