forked from enlightenment/enlightenment
fm: Fix weird test
ic is always true for this function, else dereference would fail. So the only valid thing to check is whether we already have a drop_icon. CID 1039829
This commit is contained in:
parent
81c384de9f
commit
2d9f5764a3
|
@ -6134,8 +6134,7 @@ _e_fm2_dnd_drop_show(E_Fm2_Icon *ic, int after)
|
||||||
|
|
||||||
if ((ic->sd->drop_icon == ic) &&
|
if ((ic->sd->drop_icon == ic) &&
|
||||||
(ic->sd->drop_after == after)) return;
|
(ic->sd->drop_after == after)) return;
|
||||||
if (((ic->sd->drop_icon) && (!ic)) ||
|
if (((!ic->sd->drop_icon)) ||
|
||||||
((!ic->sd->drop_icon) && (ic)) ||
|
|
||||||
((after < 0) && (ic->sd->drop_after >= 0)) ||
|
((after < 0) && (ic->sd->drop_after >= 0)) ||
|
||||||
((after >= 0) && (ic->sd->drop_after < 0)))
|
((after >= 0) && (ic->sd->drop_after < 0)))
|
||||||
emit = 1;
|
emit = 1;
|
||||||
|
|
Loading…
Reference in New Issue