[geary/wip/765516-gtk-widget-conversation-viewer: 55/101] Expand the email for search conversations with only one message.



commit ffe9215c095352c70e1fc35c90eee2cb11c52343
Author: Michael James Gratton <mike vee net>
Date:   Tue Apr 19 17:15:52 2016 +1000

    Expand the email for search conversations with only one message.

 .../conversation-viewer/conversation-viewer.vala   |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/client/conversation-viewer/conversation-viewer.vala 
b/src/client/conversation-viewer/conversation-viewer.vala
index e7c6767..d3510b6 100644
--- a/src/client/conversation-viewer/conversation-viewer.vala
+++ b/src/client/conversation-viewer/conversation-viewer.vala
@@ -477,11 +477,13 @@ public class ConversationViewer : Gtk.Stack {
             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);
         }
 
+        // 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]