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 executing TextEdit.new().set_draw_control_chars(true) #51673

Merged
merged 1 commit into from
Aug 16, 2021
Merged

Fixed crash executing TextEdit.new().set_draw_control_chars(true) #51673

merged 1 commit into from
Aug 16, 2021

Conversation

vignesh-j-shetty
Copy link
Contributor

@vignesh-j-shetty vignesh-j-shetty commented Aug 14, 2021

Bug was because of uninitialized popup menu. So I put popup menu initialization in constructor itself.

Bugsquad edit: Fixes #51613.

@vignesh-j-shetty vignesh-j-shetty requested a review from a team as a code owner August 14, 2021 16:30
@YeldhamDev YeldhamDev added this to the 4.0 milestone Aug 14, 2021
Copy link
Member

@Paulb23 Paulb23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was removed from the constructor to increase performance. Instead, It should skip the menu update in set_draw_control_chars if it has not been created yet.

@vignesh-j-shetty
Copy link
Contributor Author

This was removed from the constructor to increase performance. Instead, It should skip the menu update in set_draw_control_chars if it has not been created yet.

Okay I will do that.

@YeldhamDev
Copy link
Member

@vignesh-j-shetty
Copy link
Contributor Author

Remember to squash your commits: https://docs.godotengine.org/en/stable/community/contributing/pr_workflow.html#the-interactive-rebase

Is right what I have done? Bit inexperienced in git

@akien-mga
Copy link
Member

Is right what I have done?

Not yet, as you can see there are 5 commits in this PR, when there should be only one.

You have to rebase to squash the commits into one (not merge), and force push to update the PR (again, without merging first, otherwise you're re-adding everything you just squashed).

I'll do it this time as in the current state it's not trivial to fix when not familiar with Git rebases.

@akien-mga akien-mga changed the title Fixes #51613.Fixed Executing TextEdit.new().set_draw_control_chars(true) Fixed crash executing TextEdit.new().set_draw_control_chars(true) Aug 16, 2021
@vignesh-j-shetty
Copy link
Contributor Author

Is right what I have done?

Not yet, as you can see there are 5 commits in this PR, when there should be only one.

You have to rebase to squash the commits into one (not merge), and force push to update the PR (again, without merging first, otherwise you're re-adding everything you just squashed).

I'll do it this time as in the current state it's not trivial to fix when not familiar with Git rebases.

Thank you so much! Time to watch git tutorials :)

@akien-mga akien-mga merged commit 1ee61a5 into godotengine:master Aug 16, 2021
@akien-mga
Copy link
Member

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.

Executing TextEdit.new().set_draw_control_chars(true) crashes Godot
4 participants