[evolution] Message list not always scrolled to the cursor position on folder enter ][
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Message list not always scrolled to the cursor position on folder enter ][
- Date: Thu, 24 Nov 2016 15:06:15 +0000 (UTC)
commit 0ef7cd2b8979ccade2f1b3486258264f96439baf
Author: Milan Crha <mcrha redhat com>
Date: Thu Nov 24 16:05:19 2016 +0100
Message list not always scrolled to the cursor position on folder enter ][
The first attempt wasn't enough, more changes were needed.
src/mail/message-list.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/mail/message-list.c b/src/mail/message-list.c
index b869f83..52cd24b 100644
--- a/src/mail/message-list.c
+++ b/src/mail/message-list.c
@@ -4651,8 +4651,13 @@ message_list_folder_changed (CamelFolder *folder,
}
}
- if (need_list_regen)
- mail_regen_list (message_list, NULL, TRUE);
+ if (need_list_regen) {
+ /* Use 'folder_changed = TRUE' only if this is not the first change after the folder
+ had been set. There could happen a race condition on folder enter which prevented
+ the message list to scroll to the cursor position due to the folder_changed = TRUE,
+ by cancelling the full rebuild request. */
+ mail_regen_list (message_list, NULL, !message_list->just_set_folder);
+ }
if (altered_changes != NULL)
camel_folder_change_info_free (altered_changes);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]