From 8efa25220b56d6f105c19313caab5c31cf5f674a Mon Sep 17 00:00:00 2001 From: Hyojung Jo Date: Fri, 7 Aug 2015 13:29:18 +0900 Subject: [PATCH] Append grid items if the grid is firstly loaded Change-Id: Ia1702390baea0deeacc999b5c2bcf4ab33105131 Signed-off-by: Hyojung Jo --- src/view/view_base.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/view/view_base.c b/src/view/view_base.c index 8bb31e3..aeeacc6 100644 --- a/src/view/view_base.c +++ b/src/view/view_base.c @@ -114,12 +114,12 @@ static bool _load_current_grid(struct _priv *priv, int id) return true; } - gdata->list = list; - } + if (!gridmgr_append_list(priv->gmgr, gdata->id, list)) { + _ERR("Gridmgr append list failed."); + return false; + } - if (!gridmgr_append_list(priv->gmgr, gdata->id, gdata->list)) { - _ERR("Gridmgr append list failed."); - return false; + gdata->list = list; } elm_object_part_content_set(priv->base, PART_GENGRID, gdata->grid); -- 2.7.4