summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2024-07-22 01:55:07 +0200
committerChristian Soffke <christian.soffke@gmail.com>2024-07-22 15:56:00 -0400
commit9a84e9eb34b03d74d6062a0c2227a3c4d5d6cb20 (patch)
tree8605a806f7c2f656cbf633c118dc888e51b5ef29
parent20948c1b0e8c666011ad0d2ae7711c13416397c5 (diff)
downloadrockbox-9a84e9eb34.tar.gz
rockbox-9a84e9eb34.zip
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
-rw-r--r--apps/tree.c5
1 files 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;
}