aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-callbacks.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 28380155e2..e606d0d0e5 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,9 @@
+2001-05-11 Jeffrey Stedfast <fejj@ximian.com>
+
+ * mail-callbacks.c (forward_inlined): If the cursor_uid is NULL,
+ then we can't forward anything so just return.
+ (forward_quoted): Same.
+
2001-05-10 Jon Trowbridge <trow@ximian.com>
* folder-browser.c (folder_browser_config_search): Use the
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 0f60037da5..377cea95d0 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -818,6 +818,9 @@ forward_inlined (GtkWidget *widget, gpointer user_data)
FolderBrowser *fb = FOLDER_BROWSER (user_data);
GPtrArray *uids;
+ if (!fb->message_list->cursor_uid)
+ return;
+
if (!check_send_configuration (fb))
return;
@@ -834,6 +837,9 @@ forward_quoted (GtkWidget *widget, gpointer user_data)
FolderBrowser *fb = FOLDER_BROWSER (user_data);
GPtrArray *uids;
+ if (!fb->message_list->cursor_uid)
+ return;
+
if (!check_send_configuration (fb))
return;