summaryrefslogtreecommitdiffstats
path: root/apps/filetypes.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-12-16 08:36:46 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-12-16 08:36:46 +0000
commite425371e10c5c18a1996fe7adfb4184a09ebbd8a (patch)
tree80bee7b66110bd31734897a96fe336ea50336923 /apps/filetypes.c
parentb9aabcb1a40aa2705d720e332bef7c390fb0587a (diff)
downloadrockbox-e425371e10c5c18a1996fe7adfb4184a09ebbd8a.tar.gz
rockbox-e425371e10c5c18a1996fe7adfb4184a09ebbd8a.zip
Fix FS#10289 - screens showing a list need to check the show_icons setting before setting the callback. the List will now always draw icons if a callback is set (like its always done for voice)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24022 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/filetypes.c')
-rw-r--r--apps/filetypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/filetypes.c b/apps/filetypes.c
index 593085cbd4..1bf83c3316 100644
--- a/apps/filetypes.c
+++ b/apps/filetypes.c
@@ -505,7 +505,7 @@ int filetype_list_viewers(const char* current_file)
simplelist_info_init(&info, str(LANG_ONPLAY_OPEN_WITH), count, &data);
info.action_callback = openwith_action_callback;
info.get_name = openwith_get_name;
- info.get_icon = openwith_get_icon;
+ info.get_icon = global_settings.show_icons?openwith_get_icon:NULL;
return simplelist_show_list(&info);
}