aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-08-24 05:28:43 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-08-24 05:28:43 +0800
commit94326a9ac80ea9e3227d4df8e29441eaedbda22a (patch)
tree2ad091d594511f2bd6d8ebc9c23796ca86e43cec /shell
parent8aecd161b7dfd5fafa24702610bc3c930928ec22 (diff)
downloadgsoc2013-evolution-94326a9ac80ea9e3227d4df8e29441eaedbda22a.tar
gsoc2013-evolution-94326a9ac80ea9e3227d4df8e29441eaedbda22a.tar.gz
gsoc2013-evolution-94326a9ac80ea9e3227d4df8e29441eaedbda22a.tar.bz2
gsoc2013-evolution-94326a9ac80ea9e3227d4df8e29441eaedbda22a.tar.lz
gsoc2013-evolution-94326a9ac80ea9e3227d4df8e29441eaedbda22a.tar.xz
gsoc2013-evolution-94326a9ac80ea9e3227d4df8e29441eaedbda22a.tar.zst
gsoc2013-evolution-94326a9ac80ea9e3227d4df8e29441eaedbda22a.zip
If we get no data, don't notify the receiving component at all.
* e-storage-set-view.c (tree_drag_data_received): If we get no data, don't notify the receiving component at all. svn path=/trunk/; revision=12423
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog5
-rw-r--r--shell/e-storage-set-view.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 20e61bc9d7..3abb80a991 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,5 +1,10 @@
2001-08-23 Ettore Perazzoli <ettore@ximian.com>
+ * e-storage-set-view.c (tree_drag_data_received): If we get no
+ data, don't notify the receiving component at all.
+
+2001-08-23 Ettore Perazzoli <ettore@ximian.com>
+
[Fix #5736, crashing when copying a message with drag and drop.]
* e-storage-set-view.c (tree_drag_data_received): Handle NULL data
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c
index 8ea0b59318..b94a8f98a6 100644
--- a/shell/e-storage-set-view.c
+++ b/shell/e-storage-set-view.c
@@ -1209,6 +1209,9 @@ tree_drag_data_received (ETree *etree,
target_type = gdk_atom_name (selection_data->target);
+ if (selection_data->data == NULL && selection_data->length == -1)
+ return;
+
if (strcmp (target_type, EVOLUTION_PATH_TARGET_TYPE) == 0) {
const char *source_path;
const char *destination_folder_path;