# HG changeset patch # User ib # Date 1330003816 0 # Node ID c3ab7bd64ab3c1098b53e1305765d196550b334f # Parent 42fa91951bd212ee96ba7f68646d496ce85074ac Cosmetic: Arrange listMgr() commands in switch statement. diff -r 42fa91951bd2 -r c3ab7bd64ab3 gui/util/list.c --- a/gui/util/list.c Thu Feb 23 13:23:54 2012 +0000 +++ b/gui/util/list.c Thu Feb 23 13:30:16 2012 +0000 @@ -74,14 +74,14 @@ } else return listMgr(PLAYLIST_ITEM_APPEND, pdat); - case PLAYLIST_ITEM_GET_NEXT: + case PLAYLIST_ITEM_SET_CURR: - if (plCurrent && plCurrent->next) { - plCurrent = plCurrent->next; - return plCurrent; - } + plCurrent = pdat; + return plCurrent; - return NULL; + case PLAYLIST_ITEM_GET_CURR: + + return plCurrent; case PLAYLIST_ITEM_GET_PREV: @@ -92,14 +92,14 @@ return NULL; - case PLAYLIST_ITEM_SET_CURR: + case PLAYLIST_ITEM_GET_NEXT: - plCurrent = pdat; - return plCurrent; + if (plCurrent && plCurrent->next) { + plCurrent = plCurrent->next; + return plCurrent; + } - case PLAYLIST_ITEM_GET_CURR: - - return plCurrent; + return NULL; case PLAYLIST_ITEM_DEL_CURR: