ensure that title clicking an icon to rename only causes the rename if no other icons are clicked/selected

SVN revision: 74995
This commit is contained in:
Mike Blumenkrantz 2012-08-08 06:59:06 +00:00
parent 8fecf57e7e
commit cd9c7ee8dc
1 changed files with 9 additions and 0 deletions

View File

@ -4594,6 +4594,15 @@ _e_fm2_icon_free(E_Fm2_Icon *ic)
static Eina_Bool
_e_fm2_icon_label_click_cb(void *data)
{
E_Fm2_Icon *ic = data;
if (ic->rename_click)
{
ecore_timer_del(ic->rename_click);
ic->rename_click = NULL;
}
if (eina_list_count(ic->sd->selected_icons) != 1) return EINA_FALSE;
if (eina_list_data_get(ic->sd->selected_icons) != ic) return EINA_FALSE;
_e_fm2_file_rename(data, NULL, NULL);
return EINA_FALSE;
}