From d9291db9c7ee0f64f6c0e50c757ad7acd5fc95f5 Mon Sep 17 00:00:00 2001 From: iysheng Date: Wed, 29 Nov 2023 16:04:55 +0800 Subject: [PATCH] Add a judgment on the child's parent when show child --- workspace/core_include/wnd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspace/core_include/wnd.h b/workspace/core_include/wnd.h index 195c899b..8e29836c 100644 --- a/workspace/core_include/wnd.h +++ b/workspace/core_include/wnd.h @@ -142,7 +142,7 @@ class c_wnd : public c_cmd_target c_wnd* child = m_top_child; if (0 != child) { - while (child) + while (child && child->m_parent == this) { child->show_window(); child = child->m_next_sibling;