summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-12-28 05:55:05 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-12-28 05:55:05 +0000
commit7949dd4daebe7f058839ecc22f653ee38064d97f (patch)
treee4de0291118f4596d305241b970b18f487ef8c03
parentfd150d05b475546089848e53e32a5bfdcebff4ca (diff)
downloadrockbox-7949dd4daebe7f058839ecc22f653ee38064d97f.tar.gz
rockbox-7949dd4daebe7f058839ecc22f653ee38064d97f.zip
protect the yes/no screen from extra keypresses (which can happen if you display 2 yes/no screens too quickly)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31452 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/yesno.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/gui/yesno.c b/apps/gui/yesno.c
index e89e45ae95..a2abae33ae 100644
--- a/apps/gui/yesno.c
+++ b/apps/gui/yesno.c
@@ -169,6 +169,9 @@ enum yesno_res gui_syncyesno_run(const struct text_message * main_message,
169 screens[i].stop_scroll(); 169 screens[i].stop_scroll();
170 gui_yesno_draw(&(yn[i])); 170 gui_yesno_draw(&(yn[i]));
171 } 171 }
172 /* make sure to eat any extranous keypresses */
173 while (get_action(CONTEXT_STD+99, TIMEOUT_NOBLOCK))
174 action_wait_for_release();
172 while (result==-1) 175 while (result==-1)
173 { 176 {
174 /* Repeat the question every 5secs (more or less) */ 177 /* Repeat the question every 5secs (more or less) */