If we already have the message loaded in the mail-display, don't bother

2001-11-09  Jeffrey Stedfast  <fejj@ximian.com>

	* 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
This commit is contained in:
Jeffrey Stedfast
2001-11-11 02:24:45 +00:00
committed by Jeffrey Stedfast
parent 388862bcc0
commit feac853b11
2 changed files with 15 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2001-11-09 Jeffrey Stedfast <fejj@ximian.com>
* 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.
2001-11-08 Jeffrey Stedfast <fejj@ximian.com>
* mail-tools.c (mail_tools_x_evolution_message_parse): Was

View File

@ -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