[evolution] Bug 597151 - [regression] Folder doesn't get deleted properly
- From: Lucian Langa <lucilanga src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [evolution] Bug 597151 - [regression] Folder doesn't get deleted properly
- Date: Sat, 3 Oct 2009 09:17:20 +0000 (UTC)
commit f5165c618ae2defb310a0ed4eab06dac7346a2b0
Author: Lucian Langa <lucilanga gnome org>
Date: Sat Oct 3 12:15:17 2009 +0300
Bug 597151 - [regression] Folder doesn't get deleted properly
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 b0e53c2..3db9bd6 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]