diff options
-rw-r--r-- | modules/mail/e-mail-shell-sidebar.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/mail/e-mail-shell-sidebar.c b/modules/mail/e-mail-shell-sidebar.c index b0e53c2d49..3db9bd674e 100644 --- a/modules/mail/e-mail-shell-sidebar.c +++ b/modules/mail/e-mail-shell-sidebar.c @@ -549,8 +549,10 @@ mail_shell_sidebar_check_state (EShellSidebar *shell_sidebar) (strcmp (full_name, "Sent") != 0) && (strcmp (full_name, "Templates") != 0); - folder = em_folder_tree_get_selected_folder (folder_tree); - is_outbox = em_utils_folder_is_outbox (folder, NULL); + if (!(folder_flags & CAMEL_FOLDER_HAS_BEEN_DELETED)) { + folder = em_folder_tree_get_selected_folder (folder_tree); + is_outbox = em_utils_folder_is_outbox (folder, NULL); + } can_delete &= !(folder_flags & CAMEL_FOLDER_SYSTEM); } |