From b5c8f6f9be84477d3fe201c5cc234256399542a6 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Mon, 22 Nov 2010 12:30:59 +0100 Subject: Bug #633783 - Folder->Expunge enabled when no folder selected --- modules/mail/e-mail-shell-view.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules') 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); -- cgit v1.2.3