When the focused text input object is deleted, g_text_text should be initialized.
Change-Id: I4b9cef4b7efb6ec7e5b16a9cb9124cb08e1c3f09
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
EINA_LIST_FREE(text_input->input_methods, input_method)
{
- if (g_text_input == text_input && text_input->input_panel_visibile)
+ if (g_text_input == text_input)
{
- if (g_client)
- _input_panel_hide(g_client, resource, EINA_TRUE);
+ if (text_input->input_panel_visibile)
+ {
+ if (g_client)
+ _input_panel_hide(g_client, resource, EINA_TRUE);
+ }
+
+ g_text_input = NULL;
}
_e_text_input_deactivate(text_input, input_method);