Fix wrong signal emission

This commit is contained in:
Pedro J. Estébanez 2018-02-11 00:59:10 +01:00
parent 3155da8dfc
commit decc0de38a

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();