aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-11-11 10:24:45 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-11-11 10:24:45 +0800
commitfeac853b1132238134d5616e5e4e180320ca4911 (patch)
tree005ef4ef0add9be5fb46141ceb7306816cb9d1c9
parent388862bcc0d18f9da02a73ebe08cdf91e235b155 (diff)
downloadgsoc2013-evolution-feac853b1132238134d5616e5e4e180320ca4911.tar
gsoc2013-evolution-feac853b1132238134d5616e5e4e180320ca4911.tar.gz
gsoc2013-evolution-feac853b1132238134d5616e5e4e180320ca4911.tar.bz2
gsoc2013-evolution-feac853b1132238134d5616e5e4e180320ca4911.tar.lz
gsoc2013-evolution-feac853b1132238134d5616e5e4e180320ca4911.tar.xz
gsoc2013-evolution-feac853b1132238134d5616e5e4e180320ca4911.tar.zst
gsoc2013-evolution-feac853b1132238134d5616e5e4e180320ca4911.zip
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
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/mail-callbacks.c12
2 files changed, 15 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 0cf084d159..00b15aef6e 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -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
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