aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-10-11 04:30:48 +0800
committerMilan Crha <mcrha@redhat.com>2011-10-11 04:30:48 +0800
commit7225739d7d2a26f98c6835cf83e345894201a575 (patch)
tree24ca093dd775cf877956fb87e1321f2ceab1d1a6
parentbc58ab6a77b02a4e11f6e5be918dd82b0c3b9105 (diff)
downloadgsoc2013-evolution-7225739d7d2a26f98c6835cf83e345894201a575.tar
gsoc2013-evolution-7225739d7d2a26f98c6835cf83e345894201a575.tar.gz
gsoc2013-evolution-7225739d7d2a26f98c6835cf83e345894201a575.tar.bz2
gsoc2013-evolution-7225739d7d2a26f98c6835cf83e345894201a575.tar.lz
gsoc2013-evolution-7225739d7d2a26f98c6835cf83e345894201a575.tar.xz
gsoc2013-evolution-7225739d7d2a26f98c6835cf83e345894201a575.tar.zst
gsoc2013-evolution-7225739d7d2a26f98c6835cf83e345894201a575.zip
Bug #660861 - Avoid mark-all-read on a non-folder selection
-rw-r--r--plugins/mark-all-read/mark-all-read.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mark-all-read/mark-all-read.c b/plugins/mark-all-read/mark-all-read.c
index 4fe19cf71b..a05515b54c 100644
--- a/plugins/mark-all-read/mark-all-read.c
+++ b/plugins/mark-all-read/mark-all-read.c
@@ -602,7 +602,8 @@ update_actions_cb (EShellView *shell_view,
g_object_get (shell_sidebar, "folder-tree", &folder_tree, NULL);
folder_uri = em_folder_tree_get_selected_uri (folder_tree);
- visible = (scan_folder_tree_for_unread (folder_uri) > 0);
+ visible = em_folder_tree_get_selected (folder_tree, NULL, NULL)
+ && scan_folder_tree_for_unread (folder_uri) > 0;
gtk_action_set_visible (action, visible);
g_object_unref (folder_tree);