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:
parent
b39b452b69
commit
d22bfdba37
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue