summaryrefslogtreecommitdiff
path: root/apps
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 /apps
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
Diffstat (limited to 'apps')
-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,
121 result=YESNO_YES; 121 result=YESNO_YES;
122 break; 122 break;
123 case ACTION_NONE: 123 case ACTION_NONE:
124 case SYS_CHARGER_DISCONNECTED:
125 /* ignore some SYS events that can happen */
124 continue; 126 continue;
125 default: 127 default:
126 if(default_event_handler(button) == SYS_USB_CONNECTED) 128 if(default_event_handler(button) == SYS_USB_CONNECTED)