From 47d960893cb184802f8a7d06e6b1f13c12bb8096 Mon Sep 17 00:00:00 2001 From: "keonpyo.kong" Date: Mon, 25 Mar 2013 22:19:54 +0900 Subject: [PATCH] Null setting for FocusedControl Change-Id: I511ab2a4a488edfaf6e4b54966506824d820a8a2 Signed-off-by: keonpyo.kong --- src/ui/FUi_Control.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ui/FUi_Control.cpp b/src/ui/FUi_Control.cpp index 188998f..9058390 100755 --- a/src/ui/FUi_Control.cpp +++ b/src/ui/FUi_Control.cpp @@ -3608,6 +3608,15 @@ _Control::~_Control(void) __pFont = null; } + _Window* pTop = GetRootWindow(); + if (pTop) + { + if (this == pTop->GetFocusedControl()) + { + pTop->SetFocusedControl(null); + } + } + // Dangerous: it clears last result and log in catch block. // ClearLastResult(); } -- 2.7.4