aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-sidebar.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-03 21:40:49 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-03 21:42:06 +0800
commitc3b983d6e12e218b6f908cf263e7e08570332d6a (patch)
tree560030902b043570bfaf391f40dd40b185ccec9b /mail/e-mail-sidebar.c
parentb9f932b1b84349e80e8383d925a00a75a3b7fe29 (diff)
downloadgsoc2013-evolution-c3b983d6e12e218b6f908cf263e7e08570332d6a.tar
gsoc2013-evolution-c3b983d6e12e218b6f908cf263e7e08570332d6a.tar.gz
gsoc2013-evolution-c3b983d6e12e218b6f908cf263e7e08570332d6a.tar.bz2
gsoc2013-evolution-c3b983d6e12e218b6f908cf263e7e08570332d6a.tar.lz
gsoc2013-evolution-c3b983d6e12e218b6f908cf263e7e08570332d6a.tar.xz
gsoc2013-evolution-c3b983d6e12e218b6f908cf263e7e08570332d6a.tar.zst
gsoc2013-evolution-c3b983d6e12e218b6f908cf263e7e08570332d6a.zip
Drop 'folder_uri' param from em_utils_folder_is_outbox().
Diffstat (limited to 'mail/e-mail-sidebar.c')
-rw-r--r--mail/e-mail-sidebar.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/e-mail-sidebar.c b/mail/e-mail-sidebar.c
index 9f44f9e1a2..f9cb30eab2 100644
--- a/mail/e-mail-sidebar.c
+++ b/mail/e-mail-sidebar.c
@@ -342,15 +342,17 @@ mail_sidebar_check_state (EMailSidebar *sidebar)
allows_children = !(is_junk || is_trash);
/* Don't allow deletion of special local folders. */
- if (store == local_store)
+ if (store == local_store) {
can_delete =
(strcmp (full_name, "Drafts") != 0) &&
(strcmp (full_name, "Inbox") != 0) &&
(strcmp (full_name, "Outbox") != 0) &&
(strcmp (full_name, "Sent") != 0) &&
(strcmp (full_name, "Templates") != 0);
+ is_outbox =
+ (strcmp (full_name, "Outbox") == 0);
+ }
- is_outbox = em_utils_folder_is_outbox (NULL, uri);
can_delete &= !(folder_flags & CAMEL_FOLDER_SYSTEM);
}