hhm, strange bug
authorColin Leroy <colin@colino.net>
Mon, 12 Mar 2007 18:23:57 +0000 (18:23 +0000)
committerColin Leroy <colin@colino.net>
Mon, 12 Mar 2007 18:23:57 +0000 (18:23 +0000)
src/summaryview.c

index f6c1adebcfd83f40ba4218f232660af1d9426b11..061e73670870db899071871fa0bdc1a9c000f826 100644 (file)
@@ -3743,9 +3743,19 @@ void summary_delete(SummaryView *summaryview)
        if (!summaryview->folder_item) return;
 
        if (!prefs_common.live_dangerously) {
+               gchar *buf = NULL;
+               int num = g_list_length(GTK_CLIST(summaryview->ctree)->selection);
+               if (num == 1)
+                       buf = g_strdup_printf(_(
+                               "Do you really want to delete the selected message?"));
+               else
+                       buf = g_strdup_printf(_(
+                               "Do you really want to delete the %d selected messages?"), 
+                               num);
                aval = alertpanel(_("Delete message(s)"),
-                                 _("Do you really want to delete selected message(s)?"),
+                                 buf,
                                  GTK_STOCK_CANCEL, "+"GTK_STOCK_DELETE, NULL);
+               g_free(buf);
                if (aval != G_ALERTALTERNATE) return;
        }