Database: Fix problematic dirlevel reset
Dirlevel is restored in this error case without exiting the previously entered tables. Change-Id: I516c3ed635bc5c49dcf551223258215f79bff046
This commit is contained in:
parent
a634557a88
commit
97936e0661
1 changed files with 3 additions and 1 deletions
|
@ -2135,7 +2135,9 @@ bool tagtree_insert_selection_playlist(int position, bool queue)
|
|||
if (newtable != PLAYTRACK)
|
||||
{
|
||||
logf("newtable: %d !!", newtable);
|
||||
tc->dirlevel = dirlevel;
|
||||
while (tc->dirlevel > dirlevel)
|
||||
tagtree_exit(tc);
|
||||
tagtree_load(tc);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue