瀏覽代碼

Keep debugger selected tab open when pressing the pause button

Franklin Sobrinho 9 年之前
父節點
當前提交
f20680947b
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tools/editor/script_editor_debugger.cpp

+ 2 - 1
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);
 		docontinue->set_disabled(false);
 		emit_signal("breaked",true,can_continue);
 		emit_signal("breaked",true,can_continue);
 		OS::get_singleton()->move_window_to_foreground();
 		OS::get_singleton()->move_window_to_foreground();
-		if (!profiler->is_seeking())
+		if (error!="") {
 			tabs->set_current_tab(0);
 			tabs->set_current_tab(0);
+		}
 
 
 		profiler->set_enabled(false);
 		profiler->set_enabled(false);