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



commit 322093312e3b2ae94420d2a408fa58aa7ff4aab0
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 355fd36..6ec7dad 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]