From bfba1e36bc3cb3f686f1fbbbb8187e26e28ef57f Mon Sep 17 00:00:00 2001 From: Paulb23 Date: Sun, 31 Mar 2019 16:32:24 +0100 Subject: [PATCH] Fixed not deselecting when clearing lineedit. --- scene/gui/line_edit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index bf6833e5125..874246586d0 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;