summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorIbrahn Sahir <ibrahn.sahir@gmail.com>2018-10-20 10:48:14 +0100
committerIbrahn Sahir <ibrahn.sahir@gmail.com>2018-10-20 11:27:31 +0100
commit7bf54d23343a5901399c8596ffae101cf319103d (patch)
treea43abd088f12756a349ce6802ae8f7d18627a057 /scene
parentcf7a66195fadd078bb5d6fafebf54e250f5163e7 (diff)
Initialise LineEdit clear_button_status.
Avoiding undefined behaviour and cleaning up Valgrind output.
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/line_edit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp
index 6f344f1028..c4373876b1 100644
--- a/scene/gui/line_edit.cpp
+++ b/scene/gui/line_edit.cpp
@@ -1608,6 +1608,8 @@ LineEdit::LineEdit() {
text_changed_dirty = false;
placeholder_alpha = 0.6;
clear_button_enabled = false;
+ clear_button_status.press_attempt = false;
+ clear_button_status.pressing_inside = false;
deselect();
set_focus_mode(FOCUS_ALL);