Alternate patch to the one applied in 3653, this one's better
[modest] / src / maemo / modest-msg-view-window.c
index 8b22a14..92ea300 100644 (file)
@@ -862,8 +862,6 @@ modest_msg_view_window_new_with_header_model (TnyMsg *msg,
        modest_msg_view_window_construct (window, modest_account_name, msg_uid);
 
        priv = MODEST_MSG_VIEW_WINDOW_GET_PRIVATE (window);
        modest_msg_view_window_construct (window, modest_account_name, msg_uid);
 
        priv = MODEST_MSG_VIEW_WINDOW_GET_PRIVATE (window);
-       tny_msg_view_set_msg (TNY_MSG_VIEW (priv->msg_view), msg);
-       update_window_title (MODEST_MSG_VIEW_WINDOW (window));
 
        /* Remember the message list's TreeModel so we can detect changes 
         * and change the list selection when necessary: */
 
        /* Remember the message list's TreeModel so we can detect changes 
         * and change the list selection when necessary: */
@@ -916,6 +914,7 @@ modest_msg_view_window_new_with_header_model (TnyMsg *msg,
        gtk_widget_show_all (GTK_WIDGET (window));
 
        tny_msg_view_set_msg (TNY_MSG_VIEW (priv->msg_view), msg);
        gtk_widget_show_all (GTK_WIDGET (window));
 
        tny_msg_view_set_msg (TNY_MSG_VIEW (priv->msg_view), msg);
+       update_window_title (MODEST_MSG_VIEW_WINDOW (window));
 
        modest_msg_view_window_update_priority (window);
 
 
        modest_msg_view_window_update_priority (window);