diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playlist_viewer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index d065ad32ce..e7558ea1ad 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c | |||
@@ -749,6 +749,8 @@ bool playlist_viewer_ex(char* filename) | |||
749 | update_playlist(true); | 749 | update_playlist(true); |
750 | if (viewer.num_tracks <= 0) | 750 | if (viewer.num_tracks <= 0) |
751 | exit = true; | 751 | exit = true; |
752 | if(viewer.selected_track >= viewer.num_tracks) | ||
753 | viewer.selected_track = viewer.num_tracks-1; | ||
752 | } | 754 | } |
753 | gui_synclist_draw(&playlist_lists); | 755 | gui_synclist_draw(&playlist_lists); |
754 | break; | 756 | break; |