From 77a0316be9028a1de8c5b066032098ecd1b08c18 Mon Sep 17 00:00:00 2001 From: Stephen okra Houston Date: Tue, 8 Nov 2016 10:55:57 -0600 Subject: [PATCH] Luncher: Make sure that there is a valid drop before object on dnd. --- src/modules/luncher/bar.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/luncher/bar.c b/src/modules/luncher/bar.c index 22cb30894..dd9dfaffb 100644 --- a/src/modules/luncher/bar.c +++ b/src/modules/luncher/bar.c @@ -1612,7 +1612,8 @@ _bar_drop_move(void *data, const char *type EINA_UNUSED, void *event_data) inst->drop_before = ic; } elm_box_unpack(inst->o_icon_con, inst->place_holder); - elm_box_pack_before(inst->o_icon_con, inst->place_holder, inst->drop_before->o_layout); + if (inst->drop_before) + elm_box_pack_before(inst->o_icon_con, inst->place_holder, inst->drop_before->o_layout); } static void