fixed bug (Message Ref B/S)
authorChulheon <ch.jeong47@samsung.com>
Fri, 29 Mar 2013 04:19:18 +0000 (13:19 +0900)
committerChulheon <ch.jeong47@samsung.com>
Fri, 29 Mar 2013 04:19:18 +0000 (13:19 +0900)
Change-Id: I09c059d2da77a685684846e2b96cfc277e85cbeb

src/ui/FUi_ControlManager.cpp

index 585420e..3bcc07a 100644 (file)
@@ -1096,9 +1096,11 @@ _ControlManager::TakeFocusFromControl(const _Control& control)
 {
        if (__pFocusedControl == &control)
        {
-               _UiFocusEvent event(__pFocusedControl->GetHandle(), FOCUS_LOST);
-               _UiEventManager::GetInstance()->SendEvent(event);
+               _Control *pPreviousFocusedControl = __pFocusedControl;
                __pFocusedControl = null;
+               _UiFocusEvent event(pPreviousFocusedControl->GetHandle(), FOCUS_LOST);
+               _UiEventManager::GetInstance()->SendEvent(event);
+
                return true;
        }