Apply focus ui, fix for issue
[framework/osp/web.git] / src / controls / FWebCtrl_UserConfirmPopup.cpp
index 9157826..524926c 100755 (executable)
@@ -64,6 +64,7 @@ _UserConfirmPopup::_UserConfirmPopup(void)
        : __pUserPolicyData(null)
        , __userConfirmMode(USER_CONFIRM_USERMEDIA)
        , __pCheckButton(null)
+       , __isUserActionNeeded(false)
        , __sync(false)
        , __pImpl(null)
 {
@@ -72,7 +73,11 @@ _UserConfirmPopup::_UserConfirmPopup(void)
 
 _UserConfirmPopup::~_UserConfirmPopup(void)
 {
-       HandleUserAction(EINA_FALSE);
+       if (__isUserActionNeeded == true)
+       {
+               HandleUserAction(EINA_FALSE);
+               __isUserActionNeeded = false;
+       }
 }
 
 
@@ -94,6 +99,8 @@ _UserConfirmPopup::Construct(_UserConfirmMode userConfirmMode, void* pEventInfo,
        __userConfirmMode = userConfirmMode;
        __sync = sync;
 
+       __isUserActionNeeded = true;
+
        bool hasTitle = true;
        int popupMaxHeight = 2*pPopupData->labelDim.height + pPopupData->btnDim.height + 2*pPopupData->sideMargin;
 
@@ -412,6 +419,7 @@ CATCH:
        default:
                SysAssert(false);
        }
+       __isUserActionNeeded = false;
 }