diff options
author | Björn Stenberg <bjorn@haxx.se> | 2004-10-14 07:59:00 +0000 |
---|---|---|
committer | Björn Stenberg <bjorn@haxx.se> | 2004-10-14 07:59:00 +0000 |
commit | 6239cdd898ed3c6661cf879436ebcbb9528288af (patch) | |
tree | cc849b7f725c5b7fd85c45ea1b75d0244e1906f0 /apps | |
parent | fb0739bdf0a59ebf8b8695415cc627d23100667e (diff) | |
download | rockbox-6239cdd898ed3c6661cf879436ebcbb9528288af.tar.gz rockbox-6239cdd898ed3c6661cf879436ebcbb9528288af.zip |
Avoid TREE_RUN trailing release event
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5275 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/playlist_viewer.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/playlist_viewer.c b/apps/playlist_viewer.c index 98f04b8eaf..266b21cdd7 100644 --- a/apps/playlist_viewer.c +++ b/apps/playlist_viewer.c | |||
@@ -827,7 +827,7 @@ bool playlist_viewer_ex(char* filename) | |||
827 | bool update=true; /* update display */ | 827 | bool update=true; /* update display */ |
828 | bool cursor_on=true; /* used for flashing cursor */ | 828 | bool cursor_on=true; /* used for flashing cursor */ |
829 | int old_cursor_pos; /* last cursor position */ | 829 | int old_cursor_pos; /* last cursor position */ |
830 | int button; | 830 | int button, lastbutton = BUTTON_NONE; |
831 | 831 | ||
832 | if (!initialize(filename, false)) | 832 | if (!initialize(filename, false)) |
833 | goto exit; | 833 | goto exit; |
@@ -931,6 +931,10 @@ bool playlist_viewer_ex(char* filename) | |||
931 | #endif | 931 | #endif |
932 | 932 | ||
933 | case TREE_RUN: | 933 | case TREE_RUN: |
934 | #ifdef TREE_RUN_PRE | ||
935 | if (lastbutton != TREE_RUN_PRE) | ||
936 | break; | ||
937 | #endif | ||
934 | if (viewer.move_track >= 0) | 938 | if (viewer.move_track >= 0) |
935 | { | 939 | { |
936 | /* Move track */ | 940 | /* Move track */ |
@@ -1057,6 +1061,7 @@ bool playlist_viewer_ex(char* filename) | |||
1057 | cursor_on = true; | 1061 | cursor_on = true; |
1058 | update = false; | 1062 | update = false; |
1059 | } | 1063 | } |
1064 | lastbutton = button; | ||
1060 | } | 1065 | } |
1061 | 1066 | ||
1062 | exit: | 1067 | exit: |