diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-07-01 10:55:35 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-07-01 10:55:35 -0300 |
commit | 8cbb154466c4555f8ea44ebb9ea98f8a0e4c9877 (patch) | |
tree | 6e69479cfb3f3d5929727a24aaed085de6016d49 /tools | |
parent | 3185ce64c5c27c3ce7c4ce755bfc890bac172f04 (diff) |
Color picker was getting too much focus, made it get not as much focus.
This abuse of focus was the original culprit of #5354
Diffstat (limited to 'tools')
-rw-r--r-- | tools/editor/property_editor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/editor/property_editor.cpp b/tools/editor/property_editor.cpp index 246785932d..e0dc76e733 100644 --- a/tools/editor/property_editor.cpp +++ b/tools/editor/property_editor.cpp @@ -612,6 +612,7 @@ bool CustomPropertyEditor::edit(Object* p_owner,const String& p_name,Variant::Ty color_picker->set_edit_alpha(hint!=PROPERTY_HINT_COLOR_NO_ALPHA); color_picker->set_color(v); set_size( Size2(300*EDSCALE, color_picker->get_combined_minimum_size().height+10*EDSCALE)); + color_picker->set_focus_on_line_edit(); /* int ofs=80; int m=10; |