diff options
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-callbacks.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 4a3066761e..a1c03ee6d8 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2003-04-08 Jeffrey Stedfast <fejj@ximian.com> + + * mail-callbacks.c (do_view_message): Add a check for a NULL uid + here. Don't see how it can happen, but it seems to have for + Aaron. Anyways, this should fix bug #40904. + 2003-04-08 Dan Winship <danw@ximian.com> * mail-config.glade: Remove color specs from the druid so it will diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index d1fbb74957..c51a73c27e 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -3121,7 +3121,7 @@ do_view_message (CamelFolder *folder, const char *uid, CamelMimeMessage *message if (FOLDER_BROWSER_IS_DESTROYED (fb)) return; - if (message) { + if (message && uid) { GtkWidget *mb; camel_folder_set_message_flags (folder, uid, CAMEL_MESSAGE_SEEN, CAMEL_MESSAGE_SEEN); |