diff options
-rw-r--r-- | apps/tree.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/apps/tree.c b/apps/tree.c index 2bccefa7a1..6e9ca106c0 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -392,8 +392,11 @@ static int update_dir(void) | |||
392 | /* if selected item is undefined */ | 392 | /* if selected item is undefined */ |
393 | if (tc.selected_item == -1) | 393 | if (tc.selected_item == -1) |
394 | { | 394 | { |
395 | /* use lastfile to determine the selected item */ | 395 | #ifdef HAVE_TAGCACHE |
396 | tc.selected_item = tree_get_file_position(lastfile); | 396 | if (!id3db) |
397 | #endif | ||
398 | /* use lastfile to determine the selected item */ | ||
399 | tc.selected_item = tree_get_file_position(lastfile); | ||
397 | 400 | ||
398 | /* If the file doesn't exists, select the first one (default) */ | 401 | /* If the file doesn't exists, select the first one (default) */ |
399 | if(tc.selected_item < 0) | 402 | if(tc.selected_item < 0) |