aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail/e-mail-shell-view-actions.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mail/e-mail-shell-view-actions.c')
-rw-r--r--modules/mail/e-mail-shell-view-actions.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/mail/e-mail-shell-view-actions.c b/modules/mail/e-mail-shell-view-actions.c
index 3ba34e68c0..2fa6389bd0 100644
--- a/modules/mail/e-mail-shell-view-actions.c
+++ b/modules/mail/e-mail-shell-view-actions.c
@@ -217,6 +217,7 @@ action_mail_folder_mark_all_as_read_cb (GtkAction *action,
EShellView *shell_view;
CamelFolder *folder;
GtkWindow *parent;
+ MailFolderCache *cache;
MessageList *message_list;
GPtrArray *uids;
const gchar *key;
@@ -232,8 +233,9 @@ action_mail_folder_mark_all_as_read_cb (GtkAction *action,
folder = e_mail_reader_get_folder (reader);
g_return_if_fail (folder != NULL);
+ cache = mail_folder_cache_get_default ();
key = "/apps/evolution/mail/prompts/mark_all_read";
- if (mail_folder_cache_get_folder_has_children (mail_folder_cache_get_default (), folder, NULL))
+ if (mail_folder_cache_get_folder_has_children (cache, folder, NULL))
prompt = "mail:ask-mark-all-read-sub";
else
prompt = "mail:ask-mark-all-read";