Merge pull request #20731 from YeldhamDev/scr_editor_context_fix

Fix wrong context menu when right-clicking script/doc files
This commit is contained in:
Rémi Verschelde 2018-08-13 13:35:53 +02:00 committed by GitHub
commit 0d96902a0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2897,7 +2897,7 @@ ScriptEditor::ScriptEditor(EditorNode *p_editor) {
script_list->set_v_size_flags(SIZE_EXPAND_FILL);
script_split->set_split_offset(140);
_sort_list_on_update = true;
script_list->connect("gui_input", this, "_script_list_gui_input");
script_list->connect("gui_input", this, "_script_list_gui_input", varray(), CONNECT_DEFERRED);
script_list->set_allow_rmb_select(true);
script_list->set_drag_forwarding(this);