From 3f4386eee52506ba6b3443e0b7846628061a9c2a Mon Sep 17 00:00:00 2001 From: Chulheon Date: Fri, 29 Mar 2013 13:19:18 +0900 Subject: [PATCH] fixed bug (Message Ref B/S) Change-Id: I09c059d2da77a685684846e2b96cfc277e85cbeb --- src/ui/FUi_ControlManager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ui/FUi_ControlManager.cpp b/src/ui/FUi_ControlManager.cpp index 585420e..3bcc07a 100644 --- a/src/ui/FUi_ControlManager.cpp +++ b/src/ui/FUi_ControlManager.cpp @@ -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; } -- 2.7.4