aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-05-12 00:44:44 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-05-12 00:44:44 +0800
commit943c07d50a733f7f0303b739f82d774f538cd92f (patch)
treef050951217cfd7da66f13bc9698e05f865808dbc /mail/mail-callbacks.c
parentdadbbd6f8f1d12e6d5fc290e46885cb6b09120b8 (diff)
downloadgsoc2013-evolution-943c07d50a733f7f0303b739f82d774f538cd92f.tar.gz
gsoc2013-evolution-943c07d50a733f7f0303b739f82d774f538cd92f.tar.zst
gsoc2013-evolution-943c07d50a733f7f0303b739f82d774f538cd92f.zip
If the cursor_uid is NULL, then we can't forward anything so just return.
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. svn path=/trunk/; revision=9759
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c6
1 files changed, 6 insertions, 0 deletions
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;