Bug #633783 - Folder->Expunge enabled when no folder selected

This commit is contained in:
Milan Crha
2010-11-22 12:30:59 +01:00
committed by Rodrigo Moya
parent 4e6e78b3b0
commit 64d24b234e

View File

@ -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);