Null setting for FocusedControl
authorkeonpyo.kong <keonpyo.kong@samsung.com>
Mon, 25 Mar 2013 13:19:54 +0000 (22:19 +0900)
committerkeonpyo.kong <keonpyo.kong@samsung.com>
Mon, 25 Mar 2013 13:19:54 +0000 (22:19 +0900)
Change-Id: I511ab2a4a488edfaf6e4b54966506824d820a8a2
Signed-off-by: keonpyo.kong <keonpyo.kong@samsung.com>
src/ui/FUi_Control.cpp

index 188998f..9058390 100755 (executable)
@@ -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();
 }