From 9a84e9eb34b03d74d6062a0c2227a3c4d5d6cb20 Mon Sep 17 00:00:00 2001 From: Christian Soffke Date: Mon, 22 Jul 2024 01:55:07 +0200 Subject: tree: fix return to root after adding to existing playlist When adding files to an existing playlist from the database or file browser, Rockbox returns to the root menu afterwards. Appears to be a regression introduced in commit 72c539d for the file browser. For the database, it has only become noticeable since commit 188f025 Change-Id: Iac48fe74d20d25f083005f6ebff5abc7ee425080 --- apps/tree.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/tree.c b/apps/tree.c index 938492b168..8c41abbdcf 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -1101,12 +1101,13 @@ int rockbox_browse(struct browse_context *browse) ret_val = dirbrowse(); } } + + tc.is_browsing = false; + backup_count--; if (backup_count >= 0) tc = backups[backup_count]; - tc.is_browsing = false; - return ret_val; } -- cgit v1.2.3