From 90823e758b76bbaed17a45975a3b577c13ad97bc Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 23 Aug 2001 21:34:32 +0000 Subject: Check to make sure we actually have drag data. 2001-08-23 Jeffrey Stedfast * component-factory.c (destination_folder_handle_drop): Check to make sure we actually have drag data. * folder-browser.c (message_list_drag_data_received): Check to make sure we have valid data. svn path=/trunk/; revision=12424 --- mail/component-factory.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mail/component-factory.c') diff --git a/mail/component-factory.c b/mail/component-factory.c index c8652721e2..c197827fc1 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -451,6 +451,10 @@ destination_folder_handle_drop (EvolutionShellComponentDndDestinationFolder *des if (action == GNOME_Evolution_ShellComponentDnd_ACTION_LINK) return FALSE; /* we can't create links */ + /* this means the drag was cancelled */ + if (!data->bytes._buffer || data->bytes._length == -1) + return FALSE; + uri = camel_url_new (physical_uri, NULL); noselect = uri ? camel_url_get_param (uri, "noselect") : NULL; if (noselect && !g_strcasecmp (noselect, "yes")) { -- cgit