summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-05-28 11:27:29 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-05-28 11:27:58 -0400
commitde9c5b31c57f8e318fa6e90760be6db6d1cf01bc (patch)
tree5c173274e61c384798417c2d5f213c9939e6e651 /src
parentf39b7e1332203b3b9da65d29adc09a37589c8d45 (diff)
make ctrl+wheel album skipping more accurate when wrapping first<->last item
fixes awkward case where trying to skip to the previous album from the last album in the queue would go to the first album
Diffstat (limited to 'src')
-rw-r--r--src/bin/empc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/empc.c b/src/bin/empc.c
index 0b251a0..47289bb 100644
--- a/src/bin/empc.c
+++ b/src/bin/empc.c
@@ -241,7 +241,7 @@ queue_list_header_prev_get(Elm_Object_Item *it)
241 pick = elm_genlist_item_prev_get(pick); 241 pick = elm_genlist_item_prev_get(pick);
242 } while (pick); 242 } while (pick);
243 } 243 }
244 return elm_genlist_item_parent_get(elm_genlist_first_item_get(queue_list)); 244 return elm_genlist_last_item_get(queue_list);
245} 245}
246 246
247static inline Elm_Object_Item * 247static inline Elm_Object_Item *
@@ -262,7 +262,7 @@ queue_list_header_next_get(Elm_Object_Item *it)
262 pick = elm_genlist_item_next_get(pick); 262 pick = elm_genlist_item_next_get(pick);
263 } while (pick); 263 } while (pick);
264 } 264 }
265 return elm_genlist_item_parent_get(elm_genlist_last_item_get(queue_list)); 265 return elm_genlist_item_parent_get(elm_genlist_first_item_get(queue_list));
266} 266}
267 267
268static int 268static int