summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-04-01 17:01:45 +0200
committerGitHub <noreply@github.com>2019-04-01 17:01:45 +0200
commit9b691718f54e72854d137c9f7cb91b47d1e0d381 (patch)
tree86f657184752de487c6fd6939080cf2965592c4b /scene/gui
parente3bd84fa571661d76fc8458d65bb053988e934a6 (diff)
parentbfba1e36bc3cb3f686f1fbbbb8187e26e28ef57f (diff)
Merge pull request #27557 from Paulb23/deselect_line_edit_clear
Fixed not deselecting when clearing lineedit.
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/line_edit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp
index bf6833e512..874246586d 100644
--- a/scene/gui/line_edit.cpp
+++ b/scene/gui/line_edit.cpp
@@ -1223,6 +1223,7 @@ void LineEdit::append_at_cursor(String p_text) {
void LineEdit::clear_internal() {
+ deselect();
_clear_undo_stack();
cached_width = 0;
cursor_pos = 0;