From b33d8bdf10efb49c62d570c6a14271fe08df818a Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 4 Aug 2015 18:47:59 -0400 Subject: [PATCH] allow new drags to be created with no associated mime types --- src/bin/e_dnd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/bin/e_dnd.c b/src/bin/e_dnd.c index f3301f92d..1b1a73a65 100644 --- a/src/bin/e_dnd.c +++ b/src/bin/e_dnd.c @@ -273,8 +273,6 @@ e_drag_new(int x, int y, E_Drag *drag; unsigned int i; - /* No need to create a drag object without type */ - if ((!types) || (!num_types)) return NULL; drag = e_object_alloc(sizeof(E_Drag) + num_types * sizeof(char *), E_DRAG_TYPE, E_OBJECT_CLEANUP_FUNC(_e_drag_free)); if (!drag) return NULL;