fix bug 4132, '"Mark all as (un)read" dialog appears when acting on 1 message only'
authorPaul <paul@claws-mail.org>
Sun, 2 Dec 2018 11:15:11 +0000 (11:15 +0000)
committerPaul <paul@claws-mail.org>
Sun, 2 Dec 2018 11:15:11 +0000 (11:15 +0000)
src/summaryview.c

index 93d85f1..6564670 100644 (file)
@@ -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);