diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-03 21:40:49 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:06 +0800 |
commit | fc1034551ed2daf3040851e818b2798c3c58f4f9 (patch) | |
tree | 90696864875650f5fe3759aff3eb19c6181d78a6 /mail/e-mail-sidebar.c | |
parent | bbf5ce3869dbdf1c277ee9d10b07e91fd775502b (diff) | |
download | gsoc2013-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.c | 6 |
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); } |