diff options
author | Dave Hooper <dave@beermex.com> | 2009-07-07 22:40:47 +0000 |
---|---|---|
committer | Dave Hooper <dave@beermex.com> | 2009-07-07 22:40:47 +0000 |
commit | be0cd7310a5dc9e3e058e4c8235faad2bb11b220 (patch) | |
tree | 1b1853466679a4c922fc3760edc2f6c82f31184e /apps/playlist_viewer.c | |
parent | 4e965b4b6c22a4ed206eed418c0e1b9296cc2113 (diff) |
Fix bug introduced in r21616 (my bad)- playlist moving array could show in playlist viewer even when track not being moved
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21704 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playlist_viewer.c')
-rw-r--r-- | apps/playlist_viewer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index 5f4c682605..7c4ee379cc 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c @@ -348,6 +348,7 @@ static bool playlist_viewer_init(struct playlist_viewer * viewer, playlist_buffer_init(&viewer->buffer, buffer, buffer_size ); viewer->moving_track = -1; + viewer->moving_playlist_index = -1; if (!reload) { @@ -459,6 +460,7 @@ static int onplay_menu(int index) { /* Abort current move */ viewer.moving_track = -1; + viewer.moving_playlist_index = -1; switch (result) { @@ -642,6 +644,7 @@ bool playlist_viewer_ex(const char* filename) gui_synclist_set_nb_items(&playlist_lists, viewer.num_tracks); /* Abort move on playlist change */ viewer.moving_track = -1; + viewer.moving_playlist_index = -1; gui_synclist_draw(&playlist_lists); } @@ -670,6 +673,7 @@ bool playlist_viewer_ex(const char* filename) viewer.selected_track = viewer.moving_track; gui_synclist_select_item(&playlist_lists, viewer.moving_track); viewer.moving_track = -1; + viewer.moving_playlist_index = -1; gui_synclist_draw(&playlist_lists); } else @@ -694,6 +698,7 @@ bool playlist_viewer_ex(const char* filename) str(LANG_FAILED)); update_playlist(true); viewer.moving_track = -1; + viewer.moving_playlist_index = -1; } else if (!viewer.playlist) { |