aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-06-20 07:28:21 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-06-20 07:28:21 +0800
commite0eb876c249d64700ed6f6eb1476c46e574d6331 (patch)
treeb393b7d0cb86d9a757210f764733d205d8aad942
parent6b6c02aa9cadf1cefd071f07496dd960dcff2337 (diff)
downloadgsoc2013-evolution-e0eb876c249d64700ed6f6eb1476c46e574d6331.tar
gsoc2013-evolution-e0eb876c249d64700ed6f6eb1476c46e574d6331.tar.gz
gsoc2013-evolution-e0eb876c249d64700ed6f6eb1476c46e574d6331.tar.bz2
gsoc2013-evolution-e0eb876c249d64700ed6f6eb1476c46e574d6331.tar.lz
gsoc2013-evolution-e0eb876c249d64700ed6f6eb1476c46e574d6331.tar.xz
gsoc2013-evolution-e0eb876c249d64700ed6f6eb1476c46e574d6331.tar.zst
gsoc2013-evolution-e0eb876c249d64700ed6f6eb1476c46e574d6331.zip
Make is_node_selectable() easier to debug.
-rw-r--r--mail/message-list.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index 07bd657a0e..bbad9e46c3 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -3468,6 +3468,7 @@ is_node_selectable (MessageList *message_list,
gboolean hide_junk;
gboolean hide_deleted;
gboolean store_has_vjunk;
+ gboolean selectable = FALSE;
g_return_val_if_fail (info != NULL, FALSE);
@@ -3498,22 +3499,22 @@ is_node_selectable (MessageList *message_list,
* the message is marked as junk and if not deleted
* when hide_deleted is set */
if (flag_junk && !(flag_deleted && hide_deleted))
- return TRUE;
+ selectable = TRUE;
} else if (is_trash_folder) {
/* messages in a trash folder are selectable unless
* not deleted any more */
if (flag_deleted)
- return TRUE;
+ selectable = TRUE;
} else {
/* in normal folders it depends on hide_deleted,
* hide_junk and the message flags */
if (!(flag_junk && hide_junk)
&& !(flag_deleted && hide_deleted))
- return TRUE;
+ selectable = TRUE;
}
- return FALSE;
+ return selectable;
}
/* We try and find something that is selectable in our tree. There is