summaryrefslogtreecommitdiffstats
path: root/apps/dbtree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dbtree.c')
-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