2005-08-30 [colin] 1.9.13cvs73
authorColin Leroy <colin@colino.net>
Tue, 30 Aug 2005 18:58:10 +0000 (18:58 +0000)
committerColin Leroy <colin@colino.net>
Tue, 30 Aug 2005 18:58:10 +0000 (18:58 +0000)
* src/summaryview.c
When Hide read messages is selected and we
refresh the summaryview, don't remove the
currently displayed message. Fixes bug #797
(Summary view reloads when new mail is
downloaded in 1.9.14 rc)

ChangeLog-gtk2.claws
PATCHSETS
configure.ac
src/summaryview.c

index 9d7f96b3b003974432e68ae21911bcfb871d5b89..c6db62d729d9ed66615f5bae817061048cbaad79 100644 (file)
@@ -1,3 +1,12 @@
+2005-08-30 [colin]     1.9.13cvs73
+
+       * src/summaryview.c
+               When Hide read messages is selected and we
+               refresh the summaryview, don't remove the 
+               currently displayed message. Fixes bug #797
+               (Summary view reloads when new mail is 
+               downloaded in 1.9.14 rc)
+
 2005-08-30 [colin]     1.9.13cvs72
 
        * src/folderview.c
index 6be3d086e5f487bfc83ddb51f1bb1a80e787e07b..6e6298757116b77b39fc9382ca19839991f8a332 100644 (file)
--- a/PATCHSETS
+++ b/PATCHSETS
 ( cvs diff -u -r 1.1.2.2 -r 1.1.2.3 src/plugins/pgpinline/pgpinline.c;  ) > 1.9.13cvs70.patchset
 ( cvs diff -u -r 1.100.2.23 -r 1.100.2.24 AUTHORS;  cvs diff -u -r 1.25.2.9 -r 1.25.2.10 src/matcher_parser_parse.y;  cvs diff -u -r 1.1.4.18 -r 1.1.4.19 src/etpan/imap-thread.c;  ) > 1.9.13cvs71.patchset
 ( cvs diff -u -r 1.207.2.58 -r 1.207.2.59 src/folderview.c;  cvs diff -u -r 1.274.2.56 -r 1.274.2.57 src/mainwindow.c;  cvs diff -u -r 1.83.2.37 -r 1.83.2.38 src/mimeview.c;  cvs diff -u -r 1.2.2.14 -r 1.2.2.15 src/gtk/filesel.c;  cvs diff -u -r 1.1.4.4 -r 1.1.4.5 src/gtk/filesel.h;  ) > 1.9.13cvs72.patchset
+( cvs diff -u -r 1.395.2.117 -r 1.395.2.118 src/summaryview.c;  ) > 1.9.13cvs73.patchset
index 0b2ea2711cf5301e80ba8d7305500cd33b251d45..c679ae4566865e204bf1d0a2afeceefb3505ab13 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=13
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=72
+EXTRA_VERSION=73
 EXTRA_RELEASE=
 EXTRA_GTK2_VERSION=
 
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);
                }