summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4e8b5f5)
raw | patch | inline | side by side (parent: 4e8b5f5)
author | Max Kellermann <max@duempel.org> | |
Sat, 3 Oct 2009 16:21:09 +0000 (18:21 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Sat, 3 Oct 2009 16:21:09 +0000 (18:21 +0200) |
src/screen_artist.c | patch | blob | history |
diff --git a/src/screen_artist.c b/src/screen_artist.c
index 11bd468699e7bfcf0ee2ea019cb3e685038ac3e5..5c0ff30994d3a025ca330b70658a0bb7e3ebcf89 100644 (file)
--- a/src/screen_artist.c
+++ b/src/screen_artist.c
case CMD_ADD:
switch(mode) {
case LIST_ARTISTS:
- {
- unsigned i;
- for(i = browser.lw->selected_start; i <= browser.lw->selected_end; ++i)
- {
+ for (unsigned i = browser.lw->selected_start;
+ i <= browser.lw->selected_end; ++i) {
selected = g_ptr_array_index(artist_list, i);
add_query(c, MPD_TAG_ARTIST, selected);
cmd = CMD_LIST_NEXT; /* continue and select next item... */
}
break;
- }
+
case LIST_ALBUMS:
- {
- unsigned i;
- for(i = browser.lw->selected_start; i <= browser.lw->selected_end; ++i)
- {
+ for (unsigned i = browser.lw->selected_start;
+ i <= browser.lw->selected_end; ++i) {
if(i == album_list->len + 1)
add_query(c, MPD_TAG_ARTIST, artist);
else if (i > 0)
}
}
break;
- }
case LIST_SONGS:
/* handled by browser_cmd() */