aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index fd3500f250..aa0323e842 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -120,8 +120,11 @@ static void
select_first_unread (CamelFolder *folder, int type, gpointer data)
{
FolderBrowser *fb = data;
+ ETable *table = E_TABLE_SCROLLED (fb->message_list->etable)->table;
+ int mrow;
- message_list_select (fb->message_list, 0, MESSAGE_LIST_SELECT_NEXT,
+ mrow = e_table_view_to_model_row (table, 0);
+ message_list_select (fb->message_list, mrow, MESSAGE_LIST_SELECT_NEXT,
0, CAMEL_MESSAGE_SEEN);
}