sync for private
[apps/home/smartsearch.git] / src / ps_makeupviews.cpp
index 29ff2fd..f845f7d 100755 (executable)
@@ -67,14 +67,14 @@ ecore_exe_pipe_cb(void *data, void *buf, unsigned int size)
 
        int cmd = 0;
 
-       SEARCH_DEBUG_LOG("Pipe Command : %d ret : %d", cmd, pipe_data->search_ret);
-
        SEARCH_RET_IF(ad == NULL);
        SEARCH_RET_IF(pipe_data == NULL);
 
        result_info = pipe_data->result_list;
        cmd = pipe_data->cmd;
 
+       SEARCH_DEBUG_LOG("Pipe Command : %d ret : %d", cmd, pipe_data->search_ret);
+
        switch (cmd) {
        case SEARCH_PIPE_CMD_CLEAR_GENLIST:
                elm_genlist_clear(ad->search_gl);
@@ -606,7 +606,7 @@ static int __search_gl_set_phone_search_result(struct search_content_object *obj
 {
        SEARCH_FUNC_START;
 
-       int sel_cnt = SEARCH_CATEGORY_LIST_MORE_CNT + 1;
+       int sel_cnt = SEARCH_CATEGORY_LIST_MORE_CNT;
        int func_ret = SEARCH_RET_SEARCH_NONE;
 
        struct appdata *ad = (struct appdata *)data;