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 | |
parent | e2041da713dcfc905132346ac5216b457dd646d8 (diff) |
Don't check BUTTON_REL on SYS_ events
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5178 a1c6a512-1295-4272-9138-f99709370657
-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) break; #endif default: - default_event_handler(button); - if (button & BUTTON_REL) + if(default_event_handler(button) || (button & BUTTON_REL)) stop = true; break; } @@ -836,8 +835,8 @@ static bool dirbrowse(const char *root, const int *dirfilter) break; default: - default_event_handler(button); - if (button & BUTTON_REL) + if(default_event_handler(button) || + (button & BUTTON_REL)) stop = true; break; } |