diff options
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 15a8fc22bf..6e3cbb88a5 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -2938,14 +2938,15 @@ done_message_selected (CamelFolder *folder, const char *uid, CamelMimeMessage *m fb->loaded_uid = fb->loading_uid; fb->loading_uid = NULL; - do_mail_print (fb, preview); + if (msg) + do_mail_print (fb, preview); } /* Ack! Most of this is copied from folder-browser.c */ static void do_mail_fetch_and_print (FolderBrowser *fb, gboolean preview) { - if (!fb->preview_shown) { + if (!fb->preview_shown || fb->mail_display->current_message == NULL) { /* If the preview pane is closed, we have to do some extra magic to load the message. */ struct blarg_this_sucks *blarg = g_new (struct blarg_this_sucks, 1); |