aboutsummaryrefslogtreecommitdiffstats
path: root/src/list_window.c
diff options
context:
space:
mode:
authorAndreas Obergrusberger <tradiaz@yahoo.de>2006-11-11 20:11:32 +0000
committerAndreas Obergrusberger <tradiaz@yahoo.de>2006-11-11 20:11:32 +0000
commit7f611951dc9f46941c7db2daeb9f3d6f084d7c20 (patch)
tree9e10c57da8d63fadb76a72f984a3275c0cd0b9b6 /src/list_window.c
parentaee50deefe83ea3a79255cb64a252c58775f8a5b (diff)
downloadmpd-7f611951dc9f46941c7db2daeb9f3d6f084d7c20.tar.gz
mpd-7f611951dc9f46941c7db2daeb9f3d6f084d7c20.tar.xz
mpd-7f611951dc9f46941c7db2daeb9f3d6f084d7c20.zip
Daniel rocked the house
git-svn-id: https://svn.musicpd.org/ncmpc/branches/tradiaz@5041 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/list_window.c8
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;
+}