diff src/audacious/ui_skinned_playlist.c @ 4424:60f53670478a

fix selection of last item, if total amount of items in playlist is smaller than playlist's capacity
author Tomasz Mon <desowin@gmail.com>
date Sun, 06 Apr 2008 10:57:19 +0200
parents 3bf0124ffd2b
children 246244ead30e
line wrap: on
line diff
--- a/src/audacious/ui_skinned_playlist.c	Sat Apr 05 12:28:22 2008 +0200
+++ b/src/audacious/ui_skinned_playlist.c	Sun Apr 06 10:57:19 2008 +0200
@@ -527,7 +527,8 @@
             in_selection = TRUE;
         }
 
-        if ((!entry->selected || i == pl->first + pl->num_visible - 1)
+        if ((!entry->selected ||
+            (i == pl->first + pl->num_visible - 1) || !g_list_next(list))
             && in_selection) {
 
             if (!entry->selected)