aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
diff options
context:
space:
mode:
authorSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>2008-10-31 19:00:57 +0800
committerSankarasivasubramanian Pasupathilingam <psankar@src.gnome.org>2008-10-31 19:00:57 +0800
commit4db72d173bd8acea87277f30a0f1633cf3be4059 (patch)
tree53305d6ef1eb42c750ba6ad495257e5b9dad0d0e /mail/em-folder-tree.c
parent585ed6226b62b7fe152557c81d8f8332de97be69 (diff)
downloadgsoc2013-evolution-4db72d173bd8acea87277f30a0f1633cf3be4059.tar.gz
gsoc2013-evolution-4db72d173bd8acea87277f30a0f1633cf3be4059.tar.zst
gsoc2013-evolution-4db72d173bd8acea87277f30a0f1633cf3be4059.zip
Disable delete and rename on
right click menu for the system folders svn path=/trunk/; revision=36703
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r--mail/em-folder-tree.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 8181c9a91a..ee2283f253 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -2185,6 +2185,10 @@ emft_popup (EMFolderTree *emft, GdkEvent *event)
info_flags |= CAMEL_FOLDER_VIRTUAL | CAMEL_FOLDER_NOINFERIORS;
selfolder = em_folder_tree_get_selected_folder (emft);
+
+ if (folder_type_flags & CAMEL_FOLDER_SYSTEM)
+ flags &= ~EM_POPUP_FOLDER_DELETE;
+
if (em_utils_folder_is_outbox (selfolder, NULL))
info_flags |= CAMEL_FOLDER_TYPE_OUTBOX;
}