forked from enlightenment/efl
ecore-wl2: Fix issue of misleading 'if' statement
Gcc reports that this 'if' statement is misleading due to indentation. We should only be sending the 'finish' call if the dnd version supports it, however we should always be sending 'destroy' @fix Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
ce9379398f
commit
5fc4b971dc
|
@ -244,9 +244,11 @@ _selection_data_read(void *data, Ecore_Fd_Handler *fdh)
|
|||
{
|
||||
if (source->input->display->wl.data_device_manager_version >=
|
||||
WL_DATA_OFFER_FINISH_SINCE_VERSION)
|
||||
wl_data_offer_finish(source->offer);
|
||||
wl_data_offer_destroy(source->offer);
|
||||
source->offer = NULL;
|
||||
{
|
||||
wl_data_offer_finish(source->offer);
|
||||
}
|
||||
wl_data_offer_destroy(source->offer);
|
||||
source->offer = NULL;
|
||||
}
|
||||
|
||||
fd = ecore_main_fd_handler_fd_get(source->fdh);
|
||||
|
|
Loading…
Reference in New Issue