From feac853b1132238134d5616e5e4e180320ca4911 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Sun, 11 Nov 2001 02:24:45 +0000 Subject: If we already have the message loaded in the mail-display, don't bother 2001-11-09 Jeffrey Stedfast * mail-callbacks.c (forward_message): If we already have the message loaded in the mail-display, don't bother re-loading. This happens to fix bug #14848. svn path=/trunk/; revision=14663 --- mail/mail-callbacks.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'mail/mail-callbacks.c') diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 527d9d39a5..f1e1bcba64 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -1174,9 +1174,15 @@ forward_message (FolderBrowser *fb, MailConfigForwardStyle style) if (!check_send_configuration (fb)) return; - mail_get_message (fb->folder, fb->message_list->cursor_uid, - do_forward_non_attached, GINT_TO_POINTER (style), - mail_thread_new); + if (fb->mail_display && fb->mail_display->current_message) { + do_forward_non_attached (fb->folder, NULL, + fb->mail_display->current_message, + GINT_TO_POINTER (style)); + } else { + mail_get_message (fb->folder, fb->message_list->cursor_uid, + do_forward_non_attached, GINT_TO_POINTER (style), + mail_thread_new); + } } void -- cgit v1.2.3