2005-08-30 [colin] 1.9.13cvs73
[claws.git] / src / summaryview.c
index 83365a01bc3016033b8f2d212885182008bc675d..16db4655c0ffe075e806c18f92b9ad7288b856fa 100644 (file)
@@ -824,6 +824,7 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item)
        /* STATUSBAR_POP(summaryview->mainwin); */
 
        is_refresh = (item == summaryview->folder_item) ? TRUE : FALSE;
+
        if (is_refresh) {
                selected_msgnum = summary_get_msgnum(summaryview,
                                                     summaryview->selected);
@@ -911,6 +912,10 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item)
                        if (MSG_IS_UNREAD(msginfo->flags) &&
                            !MSG_IS_IGNORE_THREAD(msginfo->flags))
                                not_killed = g_slist_prepend(not_killed, msginfo);
+                       else if (is_refresh &&
+                               (msginfo->msgnum == selected_msgnum ||
+                                msginfo->msgnum == displayed_msgnum))
+                               not_killed = g_slist_prepend(not_killed, msginfo);
                        else
                                procmsg_msginfo_free(msginfo);
                }