summaryrefslogtreecommitdiffstats
path: root/editor/code_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-06-24 08:24:40 +0200
committerGitHub <noreply@github.com>2020-06-24 08:24:40 +0200
commit6ad814bf7b4668399bf9487d38e8924c6faeb4bf (patch)
treea37d58085e32f2b96d3bfb6117c9620aaf3cbd49 /editor/code_editor.cpp
parent7d60a88888afa3d62ea66fb6339547d65e2031d1 (diff)
parent25cb5a42e01ff8e5f0eb1f105559606cc9fd3844 (diff)
downloadredot-engine-6ad814bf7b4668399bf9487d38e8924c6faeb4bf.tar.gz
Merge pull request #39775 from Chaosus/fix_error_label
Fix error label clicking in status bar for shader editor
Diffstat (limited to 'editor/code_editor.cpp')
-rw-r--r--editor/code_editor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/editor/code_editor.cpp b/editor/code_editor.cpp
index c5df947d64..b73a27214d 100644
--- a/editor/code_editor.cpp
+++ b/editor/code_editor.cpp
@@ -1541,7 +1541,7 @@ void CodeTextEditor::_toggle_scripts_pressed() {
void CodeTextEditor::_error_pressed(const Ref<InputEvent> &p_event) {
Ref<InputEventMouseButton> mb = p_event;
if (mb.is_valid() && mb->is_pressed() && mb->get_button_index() == BUTTON_LEFT) {
- emit_signal("error_pressed");
+ goto_error();
}
}
@@ -1651,7 +1651,6 @@ void CodeTextEditor::_bind_methods() {
ADD_SIGNAL(MethodInfo("validate_script"));
ADD_SIGNAL(MethodInfo("load_theme_settings"));
ADD_SIGNAL(MethodInfo("show_warnings_panel"));
- ADD_SIGNAL(MethodInfo("error_pressed"));
}
void CodeTextEditor::set_code_complete_func(CodeTextEditorCodeCompleteFunc p_code_complete_func, void *p_ud) {