summaryrefslogtreecommitdiff
path: root/apps/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tree.c')
-rw-r--r--apps/tree.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/tree.c b/apps/tree.c
index 6e9ca106c0..cb7c033b6f 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -89,7 +89,7 @@ static struct tree_context tc;
89char lastfile[MAX_PATH]; 89char lastfile[MAX_PATH];
90static char lastdir[MAX_PATH]; 90static char lastdir[MAX_PATH];
91#ifdef HAVE_TAGCACHE 91#ifdef HAVE_TAGCACHE
92static int lasttable, lastextra, lastfirstpos; 92static int lasttable, lastextra;
93#endif 93#endif
94 94
95static bool reload_dir = false; 95static bool reload_dir = false;
@@ -364,7 +364,6 @@ static int update_dir(void)
364 if (id3db) { 364 if (id3db) {
365 if (tc.currtable != lasttable || 365 if (tc.currtable != lasttable ||
366 tc.currextra != lastextra || 366 tc.currextra != lastextra ||
367 tc.firstpos != lastfirstpos ||
368 reload_dir) 367 reload_dir)
369 { 368 {
370 if (tagtree_load(&tc) < 0) 369 if (tagtree_load(&tc) < 0)
@@ -372,7 +371,6 @@ static int update_dir(void)
372 371
373 lasttable = tc.currtable; 372 lasttable = tc.currtable;
374 lastextra = tc.currextra; 373 lastextra = tc.currextra;
375 lastfirstpos = tc.firstpos;
376 changed = true; 374 changed = true;
377 } 375 }
378 } 376 }
@@ -636,10 +634,8 @@ static int dirbrowse(void)
636 if (tc.selected_item < 0) 634 if (tc.selected_item < 0)
637 tc.selected_item = 0; 635 tc.selected_item = 0;
638#ifdef HAVE_TAGCACHE 636#ifdef HAVE_TAGCACHE
639 tc.firstpos = 0;
640 lasttable = -1; 637 lasttable = -1;
641 lastextra = -1; 638 lastextra = -1;
642 lastfirstpos = 0;
643#endif 639#endif
644 640
645 start_wps = false; 641 start_wps = false;