elm cnp - remove usless check/code according to CID 1193248

This commit is contained in:
Carsten Haitzler 2014-08-08 16:45:28 +09:00
parent b0d9d4977d
commit 2b6ae14af0
1 changed files with 7 additions and 15 deletions

View File

@ -1704,21 +1704,13 @@ found:
}
}
if (dropable->last.type)
{
cnp_debug("doing a request then: %s\n", dropable->last.type);
_x11_selections[ELM_SEL_TYPE_XDND].xwin = drop->win;
_x11_selections[ELM_SEL_TYPE_XDND].requestwidget = dropable->obj;
_x11_selections[ELM_SEL_TYPE_XDND].requestformat = dropable->last.format;
_x11_selections[ELM_SEL_TYPE_XDND].active = EINA_TRUE;
_x11_selections[ELM_SEL_TYPE_XDND].action = act;
ecore_x_selection_xdnd_request(drop->win, dropable->last.type);
}
else
{
cnp_debug("cannot match format\n");
}
cnp_debug("doing a request then: %s\n", dropable->last.type);
_x11_selections[ELM_SEL_TYPE_XDND].xwin = drop->win;
_x11_selections[ELM_SEL_TYPE_XDND].requestwidget = dropable->obj;
_x11_selections[ELM_SEL_TYPE_XDND].requestformat = dropable->last.format;
_x11_selections[ELM_SEL_TYPE_XDND].active = EINA_TRUE;
_x11_selections[ELM_SEL_TYPE_XDND].action = act;
ecore_x_selection_xdnd_request(drop->win, dropable->last.type);
return EINA_TRUE;
}