From 7a254b303b8004ea53b38bf689d765fa423bedb8 Mon Sep 17 00:00:00 2001 From: qarmin Date: Sat, 16 Feb 2019 07:56:24 +0100 Subject: Fix copy text when TextEdit is readonly --- scene/gui/text_edit.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'scene/gui/text_edit.cpp') diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index 4abde6cc0f..d2c56dba06 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -2202,10 +2202,7 @@ void TextEdit::_gui_input(const Ref &p_gui_input) { bool had_selection = selection.active; // stuff to do when selection is active.. - if (selection.active) { - - if (readonly) - return; + if (!readonly && selection.active) { bool clear = false; bool unselect = false; -- cgit v1.2.3