summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-05-18 19:04:43 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-05-25 11:16:38 +0200
commit9f7c518a20cf9d9a45b665a2d9fe2dceb373fa7d (patch)
tree87449c2863e22df20868169dada53d9c1633d114 /src/lib
parent104caf05148a79e195179e723e508f21b8664b07 (diff)
elm_dnd: do not register widgets twice
we have to support none widgets, but we should not register widgets twice because of that. Differential Revision: https://phab.enlightenment.org/D11877
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/elementary/elm_dnd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elementary/elm_dnd.c b/src/lib/elementary/elm_dnd.c
index 18ae659bdf..f0d1824aca 100644
--- a/src/lib/elementary/elm_dnd.c
+++ b/src/lib/elementary/elm_dnd.c
@@ -182,7 +182,8 @@ elm_drop_target_add(Evas_Object *obj, Elm_Sel_Format format,
182 target->format = format; 182 target->format = format;
183 183
184 efl_event_callback_array_add(obj, drop_target_cb(), target); 184 efl_event_callback_array_add(obj, drop_target_cb(), target);
185 _drop_event_register(obj); //this is ensuring that we are also supporting none widgets 185 if (!efl_isa(obj, EFL_UI_WIDGET_CLASS))
186 _drop_event_register(obj); //this is ensuring that we are also supporting none widgets
186 if (!target_register) 187 if (!target_register)
187 target_register = eina_hash_pointer_new(NULL); 188 target_register = eina_hash_pointer_new(NULL);
188 eina_hash_list_append(target_register, &obj, target); 189 eina_hash_list_append(target_register, &obj, target);