aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
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;