From f20680947bde28dfc10fcee4fc7c2949b111a40a Mon Sep 17 00:00:00 2001 From: Franklin Sobrinho Date: Sun, 17 Jul 2016 09:17:35 -0300 Subject: [PATCH] Keep debugger selected tab open when pressing the pause button --- tools/editor/script_editor_debugger.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/editor/script_editor_debugger.cpp b/tools/editor/script_editor_debugger.cpp index fc746bc21df..b6390e5aae8 100644 --- a/tools/editor/script_editor_debugger.cpp +++ b/tools/editor/script_editor_debugger.cpp @@ -338,8 +338,9 @@ void ScriptEditorDebugger::_parse_message(const String& p_msg,const Array& p_dat docontinue->set_disabled(false); emit_signal("breaked",true,can_continue); OS::get_singleton()->move_window_to_foreground(); - if (!profiler->is_seeking()) + if (error!="") { tabs->set_current_tab(0); + } profiler->set_enabled(false);