aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-02-04 13:34:28 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-02-04 13:34:28 +0800
commit4d6ccba521e9413d1190cd946561be1991390dc3 (patch)
tree03a14aa37e167f3c64f26f2f2b598578cda58a0e /mail
parentfdae6ceea23bac44f86fc271612227ea53de2fef (diff)
downloadgsoc2013-evolution-4d6ccba521e9413d1190cd946561be1991390dc3.tar
gsoc2013-evolution-4d6ccba521e9413d1190cd946561be1991390dc3.tar.gz
gsoc2013-evolution-4d6ccba521e9413d1190cd946561be1991390dc3.tar.bz2
gsoc2013-evolution-4d6ccba521e9413d1190cd946561be1991390dc3.tar.lz
gsoc2013-evolution-4d6ccba521e9413d1190cd946561be1991390dc3.tar.xz
gsoc2013-evolution-4d6ccba521e9413d1190cd946561be1991390dc3.tar.zst
gsoc2013-evolution-4d6ccba521e9413d1190cd946561be1991390dc3.zip
** See bug #53131.
2004-02-04 Not Zed <NotZed@Ximian.com> ** See bug #53131. * em-folder-browser.c (em_folder_browser_show_preview): copy the message list's cursor_uid before calling set_message, since it can get freed during setting the message. svn path=/trunk/; revision=24601
Diffstat (limited to 'mail')
-rw-r--r--mail/em-folder-browser.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c
index dd89dc0226..c1bd40346b 100644
--- a/mail/em-folder-browser.c
+++ b/mail/em-folder-browser.c
@@ -300,8 +300,12 @@ void em_folder_browser_show_preview(EMFolderBrowser *emfb, gboolean state)
gtk_paned_set_position (GTK_PANED (emfb->vpane), paned_size);
gtk_widget_show (GTK_WIDGET (emfb->priv->preview));
- if (emfb->view.list->cursor_uid)
- em_folder_view_set_message(&emfb->view, emfb->view.list->cursor_uid);
+ if (emfb->view.list->cursor_uid) {
+ char *uid = g_alloca(strlen(emfb->view.list->cursor_uid)+1);
+
+ strcpy(uid, emfb->view.list->cursor_uid);
+ em_folder_view_set_message(&emfb->view, uid);
+ }
/* need to load/show the current message? */
/*do_message_selected (emfb);*/