Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed crash due to selection of deleted entry in other pane #28

Merged
merged 2 commits into from
Nov 26, 2024

Conversation

skynettx
Copy link
Contributor

Description of the bug:
If the same directory and the same file entry are selected in both panes, then the file entry in one of the two panes is deleted, the file entry in the other pane is still selected, which leads to a crash.
WadGadget crashes in the browser/browser.c function DrawInfoPane() line 512 with a segmentation fault (Due to directory_entry *ent = NULL).

Fix for the bug:
In the browser/actions.c function PerformDeleteNoConfirm(), the call to the function B_DirectoryPaneReselect(other_pane) is added to prevent the deleted entry from continuing to be selected in the other pane.

@fragglet fragglet merged commit 8cca900 into fragglet:trunk Nov 26, 2024
4 checks passed
@fragglet
Copy link
Owner

Thank you and sorry for taking so long to respond!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants