aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.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/folder-browser.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/folder-browser.c')
-rw-r--r--mail/folder-browser.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index bc0dd26175..d54c658450 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -443,6 +443,10 @@ message_list_drag_data_received (ETree *tree, int row, ETreePath path, int col,
CamelURL *uri;
int i, fd;
+ /* this means we are receiving no data */
+ if (!selection_data->data || selection_data->length == -1)
+ return;
+
camel_exception_init (&ex);
switch (info) {
@@ -599,7 +603,7 @@ selection_received (GtkWidget *widget, GtkSelectionData *selection_data,
CamelFolder *source = NULL;
GPtrArray *uids = NULL;
- if (selection_data == NULL)
+ if (selection_data == NULL || selection_data->length == -1)
return;
source = x_evolution_message_parse (selection_data->data, selection_data->length, &uids);