diff options
Diffstat (limited to 'mail/e-mail-reader.c')
-rw-r--r-- | mail/e-mail-reader.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mail/e-mail-reader.c b/mail/e-mail-reader.c index 1a7df0ed07..9fa6ea0f69 100644 --- a/mail/e-mail-reader.c +++ b/mail/e-mail-reader.c @@ -1986,13 +1986,19 @@ mail_reader_message_selected_cb (EMailReader *reader, if (!store_async && priv->retrieving_message_operation_id > 0) mail_msg_cancel (priv->retrieving_message_operation_id); - /* Then cancel the seen timer. */ + /* Cancel the seen timer. */ message_list = MESSAGE_LIST (e_mail_reader_get_message_list (reader)); if (message_list && message_list->seen_id) { g_source_remove (message_list->seen_id); message_list->seen_id = 0; } + /* Cancel the message selected timer. */ + if (priv->message_selected_timeout_id > 0) { + g_source_remove (priv->message_selected_timeout_id); + priv->message_selected_timeout_id = 0; + } + source_id = g_timeout_add ( 100, (GSourceFunc) mail_reader_message_selected_timeout_cb, reader); |