summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter D'Hoye <peter.dhoye@gmail.com>2007-06-16 11:50:42 +0000
committerPeter D'Hoye <peter.dhoye@gmail.com>2007-06-16 11:50:42 +0000
commit93af4feae9f7890846934f4293d1291daa2901c7 (patch)
tree0cc5aa28cc7eafdae82f3cd88eca04fe2cb54aef
parent06b32fad8d53b89ad40177ccea5ab07ceb680880 (diff)
downloadrockbox-93af4feae9f7890846934f4293d1291daa2901c7.tar.gz
rockbox-93af4feae9f7890846934f4293d1291daa2901c7.zip
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
-rw-r--r--apps/gui/yesno.c2
1 files changed, 2 insertions, 0 deletions
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)