summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2005-01-18 00:04:08 +0000
committerJens Arnold <amiconn@rockbox.org>2005-01-18 00:04:08 +0000
commit28ce045ead08c8d12dfc51d3fc7732f4fc678da0 (patch)
tree49c7e4a190f763edf9d5ac81d6bb3dc296b05c77 /apps
parent3badc7dda278f5521592276bceea83a6a2bab197 (diff)
downloadrockbox-28ce045ead08c8d12dfc51d3fc7732f4fc678da0.tar.gz
rockbox-28ce045ead08c8d12dfc51d3fc7732f4fc678da0.tar.bz2
rockbox-28ce045ead08c8d12dfc51d3fc7732f4fc678da0.zip
Player: Return the correct icon for id3 database browsing.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5593 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/dbtree.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/apps/dbtree.c b/apps/dbtree.c
index e18f17da2d..68a211a836 100644
--- a/apps/dbtree.c
+++ b/apps/dbtree.c
@@ -368,7 +368,18 @@ const char* db_get_icon(struct tree_context* c)
#else
int db_get_icon(struct tree_context* c)
{
- (void)c;
- return Folder;
+ int icon;
+ switch (c->currtable)
+ {
+ case allsongs:
+ case songs:
+ icon = File;
+ break;
+
+ default:
+ icon = Folder;
+ break;
+ }
+ return icon;
}
#endif