Skip to content
Snippets Groups Projects
Commit 06a5f521 authored by Yorhel's avatar Yorhel
Browse files

Properly select the next item after deletion

Setting FF_BSEL after calling browse_init() causes two items to be
selected, as browse_init() makes sure something will be selected,
while calc_process() assumes nothing is, because the previously
selected item had just been deleted.
parent 6de0a8ec
No related branches found
No related tags found
No related merge requests found
git - ? git - ?
- Implemented hard link detection - Implemented hard link detection
- Properly select the next item after deletion
1.5 - 2009-05-02 1.5 - 2009-05-02
- Fixed incorrect apparent size on directory refresh - Fixed incorrect apparent size on directory refresh
......
...@@ -237,9 +237,9 @@ void delete_process() { ...@@ -237,9 +237,9 @@ void delete_process() {
if(delete_dir(root)) if(delete_dir(root))
browse_init(root); browse_init(root);
else { else {
browse_init(n);
if(nextsel) if(nextsel)
nextsel->flags |= FF_BSEL; nextsel->flags |= FF_BSEL;
browse_init(n);
} }
link_del(root); link_del(root);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment