fix for TextEdit::set_text firing signals it shouldn't.
Removing some _changed signals in set_ functions.
Includes revert of commit 384625aa31
This commit is contained in:
parent
228b09bafb
commit
2abec59db9
2 changed files with 2 additions and 3 deletions
|
@ -1005,7 +1005,6 @@ void LineEdit::set_text(String p_text) {
|
||||||
update();
|
update();
|
||||||
cursor_pos = 0;
|
cursor_pos = 0;
|
||||||
window_pos = 0;
|
window_pos = 0;
|
||||||
_text_changed();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void LineEdit::clear() {
|
void LineEdit::clear() {
|
||||||
|
|
|
@ -4110,7 +4110,7 @@ Control::CursorShape TextEdit::get_cursor_shape(const Point2 &p_pos) const {
|
||||||
void TextEdit::set_text(String p_text) {
|
void TextEdit::set_text(String p_text) {
|
||||||
|
|
||||||
setting_text = true;
|
setting_text = true;
|
||||||
clear();
|
_clear();
|
||||||
_insert_text_at_cursor(p_text);
|
_insert_text_at_cursor(p_text);
|
||||||
clear_undo_history();
|
clear_undo_history();
|
||||||
cursor.column = 0;
|
cursor.column = 0;
|
||||||
|
@ -4123,7 +4123,7 @@ void TextEdit::set_text(String p_text) {
|
||||||
cursor_set_column(0);
|
cursor_set_column(0);
|
||||||
update();
|
update();
|
||||||
setting_text = false;
|
setting_text = false;
|
||||||
_text_changed_emit();
|
|
||||||
//get_range()->set(0);
|
//get_range()->set(0);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue