From e425371e10c5c18a1996fe7adfb4184a09ebbd8a Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 16 Dec 2009 08:36:46 +0000 Subject: 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 --- apps/filetypes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/filetypes.c') diff --git a/apps/filetypes.c b/apps/filetypes.c index 593085c..1bf83c3 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); } -- cgit v1.1