浏览代码

Merge pull request #34430 from volzhs/error-log-with-container

Fix error log when selecting child of Containers
Rémi Verschelde 5 年之前
父节点
当前提交
9cda7f7333
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      editor/plugins/canvas_item_editor_plugin.cpp

+ 1 - 2
editor/plugins/canvas_item_editor_plugin.cpp

@@ -4076,10 +4076,9 @@ void CanvasItemEditor::_popup_warning_depop(Control *p_control) {
 	ERR_FAIL_COND(!popup_temporarily_timers.has(p_control));
 
 	Timer *timer = popup_temporarily_timers[p_control];
+	timer->queue_delete();
 	p_control->hide();
-	remove_child(timer);
 	popup_temporarily_timers.erase(p_control);
-	memdelete(timer);
 	info_overlay->set_margin(MARGIN_LEFT, (show_rulers ? RULER_WIDTH : 0) + 10);
 }