Change-Id: Ie1606a09405e5a25fe52edbdd175eabca1a72dca
Signed-off-by: aman.jeph <aman.jeph@samsung.com>
{
mp_list_view_view_type_set(MP_LIST_VIEW_AS_FOLDER_LIST);
Evas_Object* old_content = mp_list_view_base_layout_content_set(content);
- if(old_content == g_pFolderView->pNocontentlayout)
+ // delete only when no-content is actually removed.
+ if(old_content == g_pFolderView->pNocontentlayout && old_content != content)
{
MP_DEL_OBJ(g_pFolderView->pNocontentlayout);
g_pFolderView->pNocontentlayout = NULL;
{
mp_list_view_view_type_set(MP_LIST_VIEW_AS_THUMBNAIL_LIST);
Evas_Object* old_content = mp_list_view_base_layout_content_set(g_pThumbnailView->pCurrentLayout);
- if(old_content == g_pThumbnailView->pNocontentlayout)
+ // delete only when no-content is actually removed.
+ if(old_content == g_pThumbnailView->pNocontentlayout && old_content != content)
{
MP_DEL_OBJ(g_pThumbnailView->pNocontentlayout);
g_pThumbnailView->pNocontentlayout = NULL;