From eede44087fa2db8812d2408df800ea17febe76b3 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 26 Jul 2001 22:31:54 +0000 Subject: If we don't have any messages selected, break out. This fixes bug #5612. 2001-07-26 Jeffrey Stedfast * 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 --- mail/folder-browser.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mail/folder-browser.c') 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: -- cgit