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 double text_changed signal when overwriting selection in LineEdit #86460

Merged
merged 1 commit into from
Jan 3, 2024

Conversation

reach-satori
Copy link
Contributor

The part of gui_input that handles unicode wasn't checking text_changed_dirty before emitting the signal, unlike the rest of the text editing functions in LineEdit.

This brings it in line with the other code in the same file and fixes #86451

@reach-satori reach-satori requested a review from a team as a code owner December 22, 2023 22:38
@KoBeWi KoBeWi added this to the 4.3 milestone Dec 22, 2023
Copy link
Member

@KoBeWi KoBeWi left a comment

Choose a reason for hiding this comment

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

This looks like something that should be a method 🤔 (e.g. emit_changed())

The part of gui_input that handles unicode wasn't checking
text_changed_dirty before emitting the signal, unlike the rest of the text editing functions.

Fixes godotengine#86451
@akien-mga akien-mga changed the title Fix double text_changed signal when overwriting selection in LineEdit Fix double text_changed signal when overwriting selection in LineEdit Jan 3, 2024
@akien-mga akien-mga added the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Jan 3, 2024
@akien-mga akien-mga merged commit 5042f54 into godotengine:master Jan 3, 2024
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 4.2.2.

@akien-mga akien-mga removed the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Mar 11, 2024
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.

LineEdit text_changed emitted twice when replacing selected text
4 participants