diff options
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c index ac82b6c2df..c422100de8 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -205,6 +205,7 @@ static int tree_voice_cb(int selected_item, void * data) | |||
205 | struct tree_context * local_tc=(struct tree_context *)data; | 205 | struct tree_context * local_tc=(struct tree_context *)data; |
206 | char *name; | 206 | char *name; |
207 | int attr=0; | 207 | int attr=0; |
208 | int customaction = ONPLAY_NO_CUSTOMACTION; | ||
208 | #ifdef HAVE_TAGCACHE | 209 | #ifdef HAVE_TAGCACHE |
209 | bool id3db = *(local_tc->dirfilter) == SHOW_ID3DB; | 210 | bool id3db = *(local_tc->dirfilter) == SHOW_ID3DB; |
210 | char buf[AVERAGE_FILENAME_LENGTH*2]; | 211 | char buf[AVERAGE_FILENAME_LENGTH*2]; |
@@ -213,6 +214,7 @@ static int tree_voice_cb(int selected_item, void * data) | |||
213 | { | 214 | { |
214 | attr = tagtree_get_attr(local_tc); | 215 | attr = tagtree_get_attr(local_tc); |
215 | name = tagtree_get_entry_name(local_tc, selected_item, buf, sizeof(buf)); | 216 | name = tagtree_get_entry_name(local_tc, selected_item, buf, sizeof(buf)); |
217 | customaction = tagtree_get_custom_action(local_tc); | ||
216 | } | 218 | } |
217 | else | 219 | else |
218 | #endif | 220 | #endif |
@@ -245,7 +247,7 @@ static int tree_voice_cb(int selected_item, void * data) | |||
245 | did_clip = false; | 247 | did_clip = false; |
246 | } | 248 | } |
247 | } | 249 | } |
248 | bool spell_name = false; | 250 | bool spell_name = (customaction == ONPLAY_CUSTOMACTION_FIRSTLETTER); |
249 | if(!did_clip) | 251 | if(!did_clip) |
250 | { | 252 | { |
251 | /* say the number or spell if required or as a fallback */ | 253 | /* say the number or spell if required or as a fallback */ |