summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzmike <michael.blumenkrantz@gmail.com>2015-08-17 19:51:16 -0400
committerzmike <michael.blumenkrantz@gmail.com>2015-08-17 19:51:16 -0400
commite893b6cbc1f3a971cee0e08a5be9e24f3ae7b40f (patch)
tree8423adbf694054037c1e9d724eed1e108d1e67e9 /src
parent8eafb3e56e32797545f4352645b633fa85670a60 (diff)
fix prev_album skip action when activating during the first album
this should wrap back to the last album, not repeatedly skip to the first album
Diffstat (limited to 'src')
-rw-r--r--src/bin/empc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bin/empc.c b/src/bin/empc.c
index 653716a..fce1738 100644
--- a/src/bin/empc.c
+++ b/src/bin/empc.c
@@ -2963,8 +2963,10 @@ control_skip_back_album()
2963 2963
2964 if (!empd_song_item) return; 2964 if (!empd_song_item) return;
2965 pick = queue_list_header_prev_get(elm_genlist_item_parent_get(empd_song_item)); 2965 pick = queue_list_header_prev_get(elm_genlist_item_parent_get(empd_song_item));
2966 if (!pick) 2966 if ((!pick) || (pick == elm_genlist_item_parent_get(empd_song_item)))
2967 pick = elm_genlist_item_parent_get(elm_genlist_last_item_get(queue_list)); 2967 pick = elm_genlist_item_parent_get(elm_genlist_last_item_get(queue_list));
2968 if (!pick)
2969 pick = elm_genlist_last_item_get(queue_list);
2968 so = elm_object_item_data_get(pick); 2970 so = elm_object_item_data_get(pick);
2969 empd_empdd_play_id_call(empd_proxy, so->songid); 2971 empd_empdd_play_id_call(empd_proxy, so->songid);
2970} 2972}