Bug 588851 - Don't show unsubscribe option for local folders

This commit is contained in:
Matthew Barnes
2010-10-05 08:39:36 -04:00
parent 37b67ed07a
commit d00c445e8e

View File

@ -988,7 +988,9 @@ mail_shell_view_update_actions (EShellView *shell_view)
gtk_action_set_sensitive (action, sensitive);
action = ACTION (MAIL_FOLDER_UNSUBSCRIBE);
sensitive = !folder_is_store && folder_can_be_deleted;
sensitive =
store_supports_subscriptions &&
!folder_is_store && folder_can_be_deleted;
gtk_action_set_sensitive (action, sensitive);
action = ACTION (MAIL_FOLDER_MARK_ALL_AS_READ);