aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/message-list.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index 563c2223c6..1b8303cd93 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -119,9 +119,7 @@ message_list_select_next (MessageList *message_list, int row,
while (row < e_table_model_row_count (message_list->table_model)) {
info = get_message_info (message_list, row);
- if (!info)
- continue;
- if ((info->flags & mask) == flags) {
+ if (info && (info->flags & mask) == flags) {
e_table_set_cursor_row (E_TABLE (message_list->etable),
row);
return;