summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorlupoDharkael <izhe@hotmail.es>2019-09-27 13:57:20 +0200
committerlupoDharkael <izhe@hotmail.es>2019-09-27 13:57:20 +0200
commitcb22a875aad81517b30b4f9e70f0639f3d93de3e (patch)
tree23d97d849d78ac422585b0bce008c73438b93427 /scene/gui
parent04032a94459ebb6a65930e4b37778e3e82323a19 (diff)
TextEdit: Fix timer inside tree warning
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/text_edit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index 75c845b8db..e2bb4e3e91 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -3965,7 +3965,7 @@ void TextEdit::_base_remove_text(int p_from_line, int p_from_column, int p_to_li
void TextEdit::_insert_text(int p_line, int p_char, const String &p_text, int *r_end_line, int *r_end_char) {
- if (!setting_text)
+ if (!setting_text && idle_detect->is_inside_tree())
idle_detect->start();
if (undo_enabled) {
@@ -4019,7 +4019,7 @@ void TextEdit::_insert_text(int p_line, int p_char, const String &p_text, int *r
void TextEdit::_remove_text(int p_from_line, int p_from_column, int p_to_line, int p_to_column) {
- if (!setting_text)
+ if (!setting_text && idle_detect->is_inside_tree())
idle_detect->start();
String text;