From fc493f5e80de2860c73b998c8ce187ea68bedcdf Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Tue, 17 Dec 2013 22:39:47 +0100 Subject: fix bug #1020: incorrect cursor/scroll after deleting playlists --- playlist.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'playlist.h') diff --git a/playlist.h b/playlist.h index b8bdeb40..9328dcca 100644 --- a/playlist.h +++ b/playlist.h @@ -65,6 +65,7 @@ typedef struct playlist_s { playItem_t *head[PL_MAX_ITERATORS]; // head of linked list playItem_t *tail[PL_MAX_ITERATORS]; // tail of linked list int current_row[PL_MAX_ITERATORS]; // current row (cursor) + int scroll; struct DB_metaInfo_s *meta; // linked list storing metainfo int refc; int files_add_visibility; @@ -524,4 +525,10 @@ plt_add_files_end (playlist_t *plt, int visibility); void plt_deselect_all (playlist_t *plt); +void +plt_set_scroll (playlist_t *plt, int scroll); + +int +plt_get_scroll (playlist_t *plt); + #endif // __PLAYLIST_H -- cgit v1.2.3