check if control is attached or not
authorminkyu kim <imetjade.kim@samsung.com>
Mon, 8 Jul 2013 13:27:27 +0000 (22:27 +0900)
committerminkyu kim <imetjade.kim@samsung.com>
Mon, 8 Jul 2013 13:27:27 +0000 (22:27 +0900)
Change-Id: Iada56280c3dcb864b90b39970c742928c316cff3

src/ui/FUi_Control.cpp

index a8f38ef..00804d6 100644 (file)
@@ -936,7 +936,7 @@ void
 _Control::OnAncestorVisibleStateChanged(const _Control& control)
 {
        _TouchManager* pTouchManager = _TouchManager::GetInstance();
-       if (pTouchManager && IsVisible() == false)
+       if (pTouchManager && IsVisible() == false && IsAttachedToMainTree() == true)
        {
                if(pTouchManager->GetTouchControlSource() == this)
                {