diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-10-05 13:24:34 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-10-05 13:24:34 +0000 |
commit | ec289bd3cb57f6e46815662b73cd4cbbc0791419 (patch) | |
tree | b39efa03a23dde09315f66a2a07bf07d5e4ba890 /apps | |
parent | e2041da713dcfc905132346ac5216b457dd646d8 (diff) | |
download | rockbox-ec289bd3cb57f6e46815662b73cd4cbbc0791419.tar.gz rockbox-ec289bd3cb57f6e46815662b73cd4cbbc0791419.zip |
Don't check BUTTON_REL on SYS_ events
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5178 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/tree.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/tree.c b/apps/tree.c index 24034fe45b..90ae159418 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -642,8 +642,7 @@ static bool ask_resume(bool ask_once) | |||
642 | break; | 642 | break; |
643 | #endif | 643 | #endif |
644 | default: | 644 | default: |
645 | default_event_handler(button); | 645 | if(default_event_handler(button) || (button & BUTTON_REL)) |
646 | if (button & BUTTON_REL) | ||
647 | stop = true; | 646 | stop = true; |
648 | break; | 647 | break; |
649 | } | 648 | } |
@@ -836,8 +835,8 @@ static bool dirbrowse(const char *root, const int *dirfilter) | |||
836 | break; | 835 | break; |
837 | 836 | ||
838 | default: | 837 | default: |
839 | default_event_handler(button); | 838 | if(default_event_handler(button) || |
840 | if (button & BUTTON_REL) | 839 | (button & BUTTON_REL)) |
841 | stop = true; | 840 | stop = true; |
842 | break; | 841 | break; |
843 | } | 842 | } |