From cadb395527fe77c7ea75e23264c6e38989542a13 Mon Sep 17 00:00:00 2001 From: "jaewon7.cho" Date: Sat, 1 Jun 2013 05:49:31 +0530 Subject: [PATCH] Fix the defect - OnTerminating() callback is not called when it's the SplitPanel's Pane or TableViewItem Change-Id: I1551153517b07ef87875b1279c8614039ac8c9df Signed-off-by: jaewon7.cho --- src/ui/FUi_ContainerImpl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui/FUi_ContainerImpl.cpp b/src/ui/FUi_ContainerImpl.cpp index d05dd33..d24e218 100644 --- a/src/ui/FUi_ContainerImpl.cpp +++ b/src/ui/FUi_ContainerImpl.cpp @@ -191,8 +191,7 @@ _ContainerImpl::Destroy(void) _Control* pParent = GetCore().GetParent(); if (pParent) { - ControlList& children = pParent->GetChildList(); - r = children.Remove(&GetCore()); + pParent->DetachChild(GetCore()); } } RemoveAllChildren(true); -- 2.7.4