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:
Christian Soffke 2022-11-14 04:38:30 +01:00
parent a634557a88
commit 97936e0661

View file

@ -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;
}
}