evolution r36703 - trunk/mail



Author: psankar
Date: Fri Oct 31 11:00:57 2008
New Revision: 36703
URL: http://svn.gnome.org/viewvc/evolution?rev=36703&view=rev

Log:
Disable delete and rename on
right click menu for the system folders

Modified:
   trunk/mail/ChangeLog
   trunk/mail/em-folder-tree.c

Modified: trunk/mail/em-folder-tree.c
==============================================================================
--- trunk/mail/em-folder-tree.c	(original)
+++ trunk/mail/em-folder-tree.c	Fri Oct 31 11:00:57 2008
@@ -2185,6 +2185,10 @@
 			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;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]