discomfitor pushed a commit to branch master.

http://git.enlightenment.org/apps/empc.git/commit/?id=e893b6cbc1f3a971cee0e08a5be9e24f3ae7b40f

commit e893b6cbc1f3a971cee0e08a5be9e24f3ae7b40f
Author: zmike <michael.blumenkra...@gmail.com>
Date:   Mon Aug 17 19:51:16 2015 -0400

    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
---
 src/bin/empc.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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()
 
    if (!empd_song_item) return;
    pick = 
queue_list_header_prev_get(elm_genlist_item_parent_get(empd_song_item));
-   if (!pick)
+   if ((!pick) || (pick == elm_genlist_item_parent_get(empd_song_item)))
      pick = elm_genlist_item_parent_get(elm_genlist_last_item_get(queue_list));
+   if (!pick)
+     pick = elm_genlist_last_item_get(queue_list);
    so = elm_object_item_data_get(pick);
    empd_empdd_play_id_call(empd_proxy, so->songid);
 }

-- 


Reply via email to