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

FileSystemDock Fix crash when renaming a file in split mode #64025

Merged

Conversation

kleonc
Copy link
Member

@kleonc kleonc commented Aug 7, 2022

Fixes #64002 which was caused by #56847.

Name of the file being renamed was obtained from the selected item in the Tree control but it's not really reliable (e.g. in split mode there could be no item selected in that tree which would led to dereferencing nullptr). The proper path is already stored/available and now it's being used for checking the extension.

@kleonc kleonc added bug topic:editor crash cherrypick:3.x Considered for cherry-picking into a future 3.x release cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release labels Aug 7, 2022
@kleonc kleonc added this to the 4.0 milestone Aug 7, 2022
@kleonc kleonc requested a review from a team as a code owner August 7, 2022 01:09
@akien-mga akien-mga merged commit f85a816 into godotengine:master Aug 7, 2022
@akien-mga
Copy link
Member

Thanks!

@kleonc
Copy link
Member Author

kleonc commented Aug 7, 2022

@akien-mga I wasn't sure if we still cherry-pick to 3.4 (it should be crashing in there too as #56847 was cherry-picked to it).

@kleonc kleonc deleted the filesystem-dock-rename-crash-fix branch August 7, 2022 09:21
@akien-mga
Copy link
Member

Cherry-picked for 3.6.

@akien-mga akien-mga added cherrypick:3.4 and removed cherrypick:3.x Considered for cherry-picking into a future 3.x release labels Aug 8, 2022
@akien-mga
Copy link
Member

Cherry-picked for 3.5.1.

@akien-mga akien-mga removed the cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release label Aug 8, 2022
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.

Editor crash when renaming scene while search in file system dock is active
2 participants