aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-07-27 06:31:54 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-07-27 06:31:54 +0800
commiteede44087fa2db8812d2408df800ea17febe76b3 (patch)
tree45fd03c2a1f04569e4e4941f35432de48931ffb8 /mail/folder-browser.c
parentd5f77c20a8fac411744b8f444693010f28c9aeb4 (diff)
downloadgsoc2013-evolution-eede44087fa2db8812d2408df800ea17febe76b3.tar.gz
gsoc2013-evolution-eede44087fa2db8812d2408df800ea17febe76b3.tar.zst
gsoc2013-evolution-eede44087fa2db8812d2408df800ea17febe76b3.zip
If we don't have any messages selected, break out. This fixes bug #5612.
2001-07-26 Jeffrey Stedfast <fejj@ximian.com> * folder-browser.c (message_list_drag_data_get): If we don't have any messages selected, break out. This fixes bug #5612. * component-factory.c (xfer_folder): Fixed a strstr (url, "noselect=yes") brokenness. (destination_folder_handle_motion): Same. (destination_folder_handle_drop): And again here. * mail-format.c (handle_application_pgp): Implemented. (setup_mime_tables): Setup the application/pgp handler to use handle_application_pgp instead of handle_text_plain. (handle_text_plain): Remove special-case hacks for application/pgp types. svn path=/trunk/; revision=11438
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index 76983955dd..3d6b763265 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -203,6 +203,10 @@ message_list_drag_data_get (ETree *tree, int row, ETreePath path, int col,
uids = g_ptr_array_new ();
message_list_foreach (fb->message_list, add_uid, uids);
+ if (uids->len == 0) {
+ g_ptr_array_free (uids, TRUE);
+ return;
+ }
switch (info) {
case DND_TARGET_TYPE_TEXT_URI_LIST: