From: keonpyo.kong Date: Thu, 18 Apr 2013 11:49:51 +0000 (+0900) Subject: bug fix OnAncestorVisibleStateChanged X-Git-Tag: accepted/tizen_2.1/20130425.033138~115 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cff3bcd4f72f68306358060db015a61c42295c6a;p=framework%2Fosp%2Fuifw.git bug fix OnAncestorVisibleStateChanged Change-Id: I46941c41b08fa05fc2335efc2b21a196f535845c Signed-off-by: keonpyo.kong --- diff --git a/src/ui/FUi_Control.cpp b/src/ui/FUi_Control.cpp index fe12e70..114013c 100755 --- a/src/ui/FUi_Control.cpp +++ b/src/ui/FUi_Control.cpp @@ -887,11 +887,14 @@ _Control::OnVisibleStateChanged(void) void _Control::OnAncestorVisibleStateChanged(const _Control& control) { - _Control* pControl = GetFocused(); - if (pControl == this) + if (IsVisible() == false) { - SetFocused(false); - } + _Control* pControl = GetFocused(); + if (pControl == this) + { + SetFocused(false); + } + } } void