From 93af4feae9f7890846934f4293d1291daa2901c7 Mon Sep 17 00:00:00 2001 From: Peter D'Hoye Date: Sat, 16 Jun 2007 11:50:42 +0000 Subject: Ignore SYS_CHARGER_DISCONNECTED event in yesno screen (other events may need to be filtered as well) as it made the auto-ROLO question close immediatly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13635 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/yesno.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps') diff --git a/apps/gui/yesno.c b/apps/gui/yesno.c index 1ef61249b6..381d6d8c21 100644 --- a/apps/gui/yesno.c +++ b/apps/gui/yesno.c @@ -121,6 +121,8 @@ enum yesno_res gui_syncyesno_run(struct text_message * main_message, result=YESNO_YES; break; case ACTION_NONE: + case SYS_CHARGER_DISCONNECTED: + /* ignore some SYS events that can happen */ continue; default: if(default_event_handler(button) == SYS_USB_CONNECTED) -- cgit v1.2.3