aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/message-list.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index fdf275ba6c..6a051844fd 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -2575,10 +2575,12 @@ message_list_selectable_update_actions (ESelectable *selectable,
gint n_clipboard_targets)
{
GtkAction *action;
+ gboolean sensitive;
action = e_focus_tracker_get_select_all_action (focus_tracker);
+ sensitive = (e_tree_row_count (E_TREE (selectable)) > 0);
gtk_action_set_tooltip (action, _("Select all visible messages"));
- gtk_action_set_sensitive (action, TRUE);
+ gtk_action_set_sensitive (action, sensitive);
}
static void