Ignore leftover release events when starting secondary file browser.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5250 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Björn Stenberg 2004-10-11 09:25:05 +00:00
parent 72d2535a49
commit 75ed8946f0

View file

@ -868,6 +868,10 @@ static bool dirbrowse(const char *root, const int *dirfilter)
button = button_get_w_tmo(HZ/5); button = button_get_w_tmo(HZ/5);
/* ignore leftover release event */
if (!lastbutton && (button & BUTTON_REL))
continue;
#ifndef SIMULATOR #ifndef SIMULATOR
if (boot_changed) { if (boot_changed) {
bool stop = false; bool stop = false;