1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-30 16:26:50 +00:00

Merge pull request #16548 from RandomShaper/fix-debug-errors-2.1

Fix wrong signal emission (2.1)
This commit is contained in:
Rémi Verschelde
2018-02-18 17:29:27 +01:00
committed by GitHub

View File

@@ -374,7 +374,8 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
breaked = true;
dobreak->set_disabled(true);
docontinue->set_disabled(false);
emit_signal("breaked", true, can_continue);
// Variant() needed to call the right overload
emit_signal("breaked", Variant(true), Variant(can_continue));
OS::get_singleton()->move_window_to_foreground();
if (error != "") {
tabs->set_current_tab(0);
@@ -399,7 +400,8 @@ void ScriptEditorDebugger::_parse_message(const String &p_msg, const Array &p_da
forward->set_disabled(true);
dobreak->set_disabled(false);
docontinue->set_disabled(true);
emit_signal("breaked", false, false);
// Variant() needed to call the right overload
emit_signal("breaked", Variant(false), Variant(false));
//tabs->set_current_tab(0);
profiler->set_enabled(true);
profiler->disable_seeking();