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



commit 988747e24803faa93fa13a800f3cde5262e23a3d
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 ae3e3f5..b7d36ae 100644
--- a/src/client/conversation-viewer/conversation-viewer.vala
+++ b/src/client/conversation-viewer/conversation-viewer.vala
@@ -482,11 +482,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]