NULL check gadcon dnd enter events so we don't crash on efm drag operations

ticket #1820


SVN revision: 79676
This commit is contained in:
Mike Blumenkrantz 2012-11-26 08:29:22 +00:00
parent 8d30916e09
commit 011b6c7b02
1 changed files with 1 additions and 0 deletions

View File

@ -2851,6 +2851,7 @@ _e_gadcon_cb_dnd_enter(void *data, const char *type __UNUSED__, void *event)
gc = data;
//INF("DND ENTER");
gcc = gc->drag_gcc;
if (!gcc) return; // dnd from efm or something
if ((!gcc->hidden) && (gcc->gadcon == gc))
{
if (gc->dnd_enter_cb) gc->dnd_enter_cb(gc, gc->drag_gcc);