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
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:06 +0800
commitfc1034551ed2daf3040851e818b2798c3c58f4f9 (patch)
tree90696864875650f5fe3759aff3eb19c6181d78a6 /mail/e-mail-sidebar.c
parentbbf5ce3869dbdf1c277ee9d10b07e91fd775502b (diff)
downloadgsoc2013-evolution-fc1034551ed2daf3040851e818b2798c3c58f4f9.tar
gsoc2013-evolution-fc1034551ed2daf3040851e818b2798c3c58f4f9.tar.gz
gsoc2013-evolution-fc1034551ed2daf3040851e818b2798c3c58f4f9.tar.bz2
gsoc2013-evolution-fc1034551ed2daf3040851e818b2798c3c58f4f9.tar.lz
gsoc2013-evolution-fc1034551ed2daf3040851e818b2798c3c58f4f9.tar.xz
gsoc2013-evolution-fc1034551ed2daf3040851e818b2798c3c58f4f9.tar.zst
gsoc2013-evolution-fc1034551ed2daf3040851e818b2798c3c58f4f9.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);
}