Fixed N_SE-38563, N_SE-38552
[apps/osp/Settings.git] / src / StWallpaperAlbumListDetailForm.cpp
index 69cea46..e32a1b8 100644 (file)
@@ -314,10 +314,11 @@ WallpaperAlbumListDetailForm::OnIconListViewItemStateChanged(IconListView& view,
                AppControl* pAc = AppManager::FindAppControlN(IMAGE_VIEWER_APP_ID, IMAGE_VIEWER_CROP_OPERATION_ID);
                if (pAc)
                {
-                       pAc->Start(&uri, null, &extraData, this);
+                       if (pAc->Start(&uri, null, &extraData, this) == E_SUCCESS)
+                       {
+                               __isRunningAppControl = true;
+                       }
                        delete pAc;
-
-                       __isRunningAppControl = true;
                }
 
        }