Merge pull request #100275 from KoBeWi/highest_level_clearance
Don't emit `text_changed` signal when clearing empty LineEdit
This commit is contained in:
commit
07093c4a34
1 changed files with 5 additions and 1 deletions
|
|
@ -1859,8 +1859,12 @@ Array LineEdit::get_structured_text_bidi_override_options() const {
|
|||
}
|
||||
|
||||
void LineEdit::clear() {
|
||||
bool was_empty = text.is_empty();
|
||||
clear_internal();
|
||||
_text_changed();
|
||||
_clear_redo();
|
||||
if (!was_empty) {
|
||||
_emit_text_change();
|
||||
}
|
||||
|
||||
// This should reset virtual keyboard state if needed.
|
||||
if (editing) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue