summaryrefslogtreecommitdiff
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-9a84e9eb34b03d74d6062a0c2227a3c4d5d6cb20.tar.gz
rockbox-9a84e9eb34b03d74d6062a0c2227a3c4d5d6cb20.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)
1101 ret_val = dirbrowse(); 1101 ret_val = dirbrowse();
1102 } 1102 }
1103 } 1103 }
1104
1105 tc.is_browsing = false;
1106
1104 backup_count--; 1107 backup_count--;
1105 if (backup_count >= 0) 1108 if (backup_count >= 0)
1106 tc = backups[backup_count]; 1109 tc = backups[backup_count];
1107 1110
1108 tc.is_browsing = false;
1109
1110 return ret_val; 1111 return ret_val;
1111} 1112}
1112 1113