In DetachingFromMainTree, Set __isCalledCallOnAttachedToMainTree to false
authorkeonpyo.kong <keonpyo.kong@samsung.com>
Sun, 31 Mar 2013 09:23:06 +0000 (18:23 +0900)
committerkeonpyo.kong <keonpyo.kong@samsung.com>
Sun, 31 Mar 2013 09:23:06 +0000 (18:23 +0900)
Change-Id: I9a49951a70aee5a8a8bcd65ef8e96b598528f296
Signed-off-by: keonpyo.kong <keonpyo.kong@samsung.com>
src/ui/FUi_Control.cpp

index 924d7f3..be24234 100755 (executable)
@@ -1432,12 +1432,14 @@ _Control::CallOnDetachingFromMainTree(_Control& control)
                                E_OUT_OF_RANGE, "[E_OUT_OF_RANGE] The specified index is out of range.");\r
                }\r
                r = CallOnDetachingFromMainTree(*pChild);\r
+               pChild->SetCalledCallAttachedToMainTree(false);\r
                SysTryReturn(NID_UI, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));\r
        }\r
 \r
        if (__isPostOrderTraversal)\r
        {\r
                r = control.GetControlDelegate().OnDetachingFromMainTree();\r
+               pChild->SetCalledCallAttachedToMainTree(false);\r
                SysTryReturn(NID_UI, r == E_SUCCESS, r, r, "[%s] Propagating.", GetErrorMessage(r));\r
        }\r
 \r