performance: Fix issue where EDI would slow down

a bad circular problem where an error with tooltips causes more
tooltips to be spawned...
This commit is contained in:
Andy Williams 2015-05-30 22:48:35 +01:00
parent 906cfc9a2c
commit b07cc34de6
1 changed files with 6 additions and 3 deletions

View File

@ -14,9 +14,12 @@ _elm_code_widget_tooltip_text_set(Evas_Object *widget, const char *text)
pd = eo_data_scope_get(widget, ELM_CODE_WIDGET_CLASS);
if (!text)
elm_object_tooltip_hide(widget);
else
elm_object_tooltip_show(widget);
{
elm_object_tooltip_hide(widget);
return;
}
elm_object_tooltip_show(widget);
if (pd->tooltip) // will have been created by the callback below...
elm_object_text_set(pd->tooltip, text);