From b3c6fdfc6b91198da99d435fc85c39d58e6dc347 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 1 Apr 2010 15:25:16 +0200 Subject: Bug #613354 - Folder->Mark all messages as read does not work --- modules/mail/e-mail-shell-view-actions.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c index 5b6f483706..afe1629e4f 100644 --- a/modules/mail/e-mail-shell-view-actions.c +++ b/modules/mail/e-mail-shell-view-actions.c @@ -216,6 +216,7 @@ action_mail_folder_mark_all_as_read_cb (GtkAction *action, EShellView *shell_view; CamelFolder *folder; GtkWindow *parent; + MessageList *message_list; GPtrArray *uids; const gchar *key; const gchar *prompt; @@ -236,7 +237,10 @@ action_mail_folder_mark_all_as_read_cb (GtkAction *action, if (!em_utils_prompt_user (parent, key, prompt, NULL)) return; - uids = e_mail_reader_get_selected_uids (reader); + message_list = MESSAGE_LIST (e_mail_reader_get_message_list (reader)); + g_return_if_fail (message_list != NULL); + + uids = message_list_get_uids (message_list); camel_folder_freeze (folder); for (ii = 0; ii < uids->len; ii++) -- cgit v1.2.3