[geary/wip/765516-gtk-widget-conversation-viewer: 83/119] Fix a crash when viewer is cleared while highlighting search terms.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/765516-gtk-widget-conversation-viewer: 83/119] Fix a crash when viewer is cleared while highlighting search terms.
- Date: Mon, 15 Aug 2016 00:23:26 +0000 (UTC)
commit 569063273589070f8dc11f7dc7a200cb9ae1b6f4
Author: Michael James Gratton <mike vee net>
Date: Mon Jul 11 12:46:00 2016 +1000
Fix a crash when viewer is cleared while highlighting search terms.
.../conversation-viewer/conversation-viewer.vala | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/client/conversation-viewer/conversation-viewer.vala
b/src/client/conversation-viewer/conversation-viewer.vala
index 427b760..e0fb3d1 100644
--- a/src/client/conversation-viewer/conversation-viewer.vala
+++ b/src/client/conversation-viewer/conversation-viewer.vala
@@ -555,17 +555,17 @@ public class ConversationViewer : Gtk.Stack {
add_email(email, conversation.is_in_current_folder(email.id));
}
+ // Ensure the last email is always shown
+ Gtk.ListBoxRow last_row =
+ conversation_listbox.get_row_at_index(emails.size - 1);
+ expand_email(last_row, false);
+
if (current_folder is Geary.SearchFolder) {
yield highlight_search_terms();
} else {
compress_emails();
}
- // Ensure the last email is always shown
- Gtk.ListBoxRow last_row =
- conversation_listbox.get_row_at_index(emails.size - 1);
- expand_email(last_row, false);
-
loading_conversations = false;
if (state == ViewState.CONVERSATION) {
debug("Emails loaded\n");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]