aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2009-09-13 12:21:30 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-09-13 12:21:30 +0800
commit70ed8286d0293691e828ec46291fa1b0a549cc63 (patch)
tree82df65432484b1c4617e622a5d7efe5c78fcb667 /modules
parent0177724596c1cfb2cadea4ccf8d96f9101b32c02 (diff)
downloadgsoc2013-evolution-70ed8286d0293691e828ec46291fa1b0a549cc63.tar
gsoc2013-evolution-70ed8286d0293691e828ec46291fa1b0a549cc63.tar.gz
gsoc2013-evolution-70ed8286d0293691e828ec46291fa1b0a549cc63.tar.bz2
gsoc2013-evolution-70ed8286d0293691e828ec46291fa1b0a549cc63.tar.lz
gsoc2013-evolution-70ed8286d0293691e828ec46291fa1b0a549cc63.tar.xz
gsoc2013-evolution-70ed8286d0293691e828ec46291fa1b0a549cc63.tar.zst
gsoc2013-evolution-70ed8286d0293691e828ec46291fa1b0a549cc63.zip
Bug 594017 - Crash on set preview visible
Diffstat (limited to 'modules')
-rw-r--r--modules/mail/e-mail-shell-content.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/mail/e-mail-shell-content.c b/modules/mail/e-mail-shell-content.c
index 10c714a176..c1e4c13eac 100644
--- a/modules/mail/e-mail-shell-content.c
+++ b/modules/mail/e-mail-shell-content.c
@@ -838,10 +838,14 @@ e_mail_shell_content_set_preview_visible (EMailShellContent *mail_shell_content,
if (preview_visible) {
EMailReader *reader;
MessageList *message_list;
+ const gchar *cursor_uid;
reader = E_MAIL_READER (mail_shell_content);
message_list = e_mail_reader_get_message_list (reader);
- e_mail_reader_set_message (reader, message_list->cursor_uid);
+ cursor_uid = message_list->cursor_uid;
+
+ if (cursor_uid != NULL)
+ e_mail_reader_set_message (reader, cursor_uid);
}
mail_shell_content->priv->preview_visible = preview_visible;