talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit f21dc9270747cba5f1a99051984f04d71455ae1d
parent 17267f3a517aa106f46a79357bf846ede378ade4
Author: Paul <paul@claws-mail.org>
Date:   Sun,  2 Dec 2018 11:15:11 +0000

fix bug 4132, '"Mark all as (un)read" dialog appears when acting on 1 message only'

Diffstat:
Msrc/summaryview.c | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/summaryview.c b/src/summaryview.c @@ -4199,8 +4199,9 @@ void summary_mark_as_read(SummaryView *summaryview) if (summary_is_locked(summaryview)) return; - if ((summaryview->folder_item->total_msgs == (gint)g_list_length(GTK_CMCLIST(ctree)->selection)) - && !summary_mark_all_read_confirm(TRUE)) + if ((summaryview->folder_item->total_msgs == (gint)g_list_length(GTK_CMCLIST(ctree)->selection) && + summaryview->folder_item->total_msgs > 1) && + !summary_mark_all_read_confirm(TRUE)) return; START_LONG_OPERATION(summaryview, FALSE);