aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2010-11-22 19:30:59 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:02 +0800
commit64d24b234e59628c8d2a3adf34b416f8bd2da78d (patch)
tree064607485c435e7d5e68d8e8f6ed10ca28f819a4 /modules
parent4e6e78b3b05547fcc1df4ecffeb571dda734fd3c (diff)
downloadgsoc2013-evolution-64d24b234e59628c8d2a3adf34b416f8bd2da78d.tar
gsoc2013-evolution-64d24b234e59628c8d2a3adf34b416f8bd2da78d.tar.gz
gsoc2013-evolution-64d24b234e59628c8d2a3adf34b416f8bd2da78d.tar.bz2
gsoc2013-evolution-64d24b234e59628c8d2a3adf34b416f8bd2da78d.tar.lz
gsoc2013-evolution-64d24b234e59628c8d2a3adf34b416f8bd2da78d.tar.xz
gsoc2013-evolution-64d24b234e59628c8d2a3adf34b416f8bd2da78d.tar.zst
gsoc2013-evolution-64d24b234e59628c8d2a3adf34b416f8bd2da78d.zip
Bug #633783 - Folder->Expunge enabled when no folder selected
Diffstat (limited to 'modules')
-rw-r--r--modules/mail/e-mail-shell-view.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/mail/e-mail-shell-view.c b/modules/mail/e-mail-shell-view.c
index 0484a56bbe..ed6343779b 100644
--- a/modules/mail/e-mail-shell-view.c
+++ b/modules/mail/e-mail-shell-view.c
@@ -971,6 +971,10 @@ mail_shell_view_update_actions (EShellView *shell_view)
sensitive = !folder_is_store && folder_can_be_deleted;
gtk_action_set_sensitive (action, sensitive);
+ action = ACTION (MAIL_FOLDER_EXPUNGE);
+ sensitive = !folder_is_store && uri != NULL;
+ gtk_action_set_sensitive (action, sensitive);
+
action = ACTION (MAIL_FOLDER_MOVE);
sensitive = !folder_is_store && folder_can_be_deleted;
gtk_action_set_sensitive (action, sensitive);