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

Fix file rename crash after toggling split mode. #84217

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

SaracenOne
Copy link
Member

@SaracenOne SaracenOne commented Oct 30, 2023

This PR fixes a crash which occurs if you highlight a file in the thumbnail browser, then toggle between the split modes, and attempt to rename it again while it still shows up as highlighted. It fixes this by attempting to implicitly set the 'current' id of the selected file in the _update_file_list function.

Closes #84215

@SaracenOne SaracenOne added this to the 4.2 milestone Oct 30, 2023
@SaracenOne SaracenOne requested a review from a team as a code owner October 30, 2023 23:01
@SaracenOne SaracenOne force-pushed the fix_filesystem_rename_crash branch from 3d83af9 to 0a4a4d7 Compare October 30, 2023 23:23
editor/filesystem_dock.cpp Outdated Show resolved Hide resolved
@YuriSizov
Copy link
Contributor

@SaracenOne Could you apply the suggestion so we can merge this?

@SaracenOne SaracenOne force-pushed the fix_filesystem_rename_crash branch from 0a4a4d7 to 7fea0ce Compare November 2, 2023 21:29
@SaracenOne
Copy link
Member Author

@YuriSizov Fixed! Should be good to go now.

@YuriSizov YuriSizov merged commit 330d22e into godotengine:master Nov 3, 2023
@YuriSizov
Copy link
Contributor

Thanks!

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

Successfully merging this pull request may close these issues.

Crash after attempting selected file after toggling split modes.
3 participants