aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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);*/