Apply gem
[platform/framework/native/shell.git] / src / FShell_AppWidgetViewImpl.cpp
index 577ca0b..78122e5 100644 (file)
@@ -149,7 +149,7 @@ result
 _AppWidgetViewImpl::AddAppWidgetViewEventListener(IAppWidgetViewEventListener& listener)
 {
        bool exist = __pAppWidgetViewEventListenerList->Contains(&listener);
-       SysTryReturn(NID_SHELL, exist, E_OBJ_ALREADY_EXIST, E_OBJ_ALREADY_EXIST, "[%s] Propagating.", GetErrorMessage(E_OBJ_ALREADY_EXIST));
+       SysTryReturn(NID_SHELL, exist == false, E_OBJ_ALREADY_EXIST, E_OBJ_ALREADY_EXIST, "[%s] Propagating.", GetErrorMessage(E_OBJ_ALREADY_EXIST));
 
        __pAppWidgetViewEventListenerList->Add(&listener);