Ctxpopup: block the input values from ctxpopup if it already deleted.

When compilation error happens - the currently open ctxpopup
will be closed.
@fix T2542
This commit is contained in:
Mykyta Biliavskyi 2015-09-22 10:36:09 +00:00
parent b39b452b69
commit d22bfdba37
2 changed files with 3 additions and 0 deletions

View File

@ -379,6 +379,8 @@ ctxpopup_candidate_changed_cb(void *data, Evas_Object *obj EINA_UNUSED,
elm_entry_select_region_set(ed->en_edit, cur_pos, end_pos);
if (!ed->ctxpopup) return;
redoundo_text_relative_push(ed->rd, text);
elm_entry_entry_insert(ed->en_edit, text);
elm_entry_calc_force(ed->en_edit);

View File

@ -159,6 +159,7 @@ build_err_noti_cb(void *data, const char *msg)
call_error:
free(utf8);
edit_error_set(pd->ed, line_num - 1, target);
edit_ctxpopup_dismiss(pd->ed);
if (line_num || target)
edit_syntax_color_full_apply(pd->ed, EINA_TRUE);
evas_object_smart_callback_call(pd->obj, SIG_COMPILE_ERROR, (char *)msg);