aboutsummaryrefslogtreecommitdiffstats
path: root/mail/component-factory.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-08-24 05:34:32 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-08-24 05:34:32 +0800
commit90823e758b76bbaed17a45975a3b577c13ad97bc (patch)
treee9382369c851aad01a1a91ea78b697843dd061d7 /mail/component-factory.c
parent94326a9ac80ea9e3227d4df8e29441eaedbda22a (diff)
downloadgsoc2013-evolution-90823e758b76bbaed17a45975a3b577c13ad97bc.tar
gsoc2013-evolution-90823e758b76bbaed17a45975a3b577c13ad97bc.tar.gz
gsoc2013-evolution-90823e758b76bbaed17a45975a3b577c13ad97bc.tar.bz2
gsoc2013-evolution-90823e758b76bbaed17a45975a3b577c13ad97bc.tar.lz
gsoc2013-evolution-90823e758b76bbaed17a45975a3b577c13ad97bc.tar.xz
gsoc2013-evolution-90823e758b76bbaed17a45975a3b577c13ad97bc.tar.zst
gsoc2013-evolution-90823e758b76bbaed17a45975a3b577c13ad97bc.zip
Check to make sure we actually have drag data.
2001-08-23 Jeffrey Stedfast <fejj@ximian.com> * 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
Diffstat (limited to 'mail/component-factory.c')
-rw-r--r--mail/component-factory.c4
1 files changed, 4 insertions, 0 deletions
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")) {