summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-03-08 00:37:58 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-03-08 00:37:58 +0000
commit7ce492e693b298a665706ffd83f504e916da02f3 (patch)
treec95ec9185d78ba516c3e0e63f1c316930510e308
parentf61b7948f986e688c75d8c8753918d5be0e27d51 (diff)
downloadrockbox-7ce492e693b298a665706ffd83f504e916da02f3.tar.gz
rockbox-7ce492e693b298a665706ffd83f504e916da02f3.zip
Hopefully fix FS#6757
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12680 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/root_menu.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index 9a9266f028..fa00a06ed5 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -411,6 +411,12 @@ void root_menu(void)
}
#endif /* HAVE_RTC_ALARM */
+#ifdef HAVE_HEADPHONE_DETECTION
+ if (ret_val == GO_TO_WPS &&
+ (global_settings.unplug_autoresume && !headphones_inserted() ))
+ ret_val = GO_TO_ROOT;
+#endif
+
while (true)
{
switch (ret_val)