[geary/wip/713190-resort-2] Ensure that a "row-changed" signal is emitted every time the conversation is updated



commit 6ad9b2105f9b292fab4d3d1a4c45a9b405684bd2
Author: Jim Nelson <jim yorba org>
Date:   Wed Jan 21 15:19:37 2015 -0800

    Ensure that a "row-changed" signal is emitted every time the conversation is updated

 .../conversation-list/conversation-list-store.vala |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/src/client/conversation-list/conversation-list-store.vala 
b/src/client/conversation-list/conversation-list-store.vala
index 8f20f0c..b35c0dd 100644
--- a/src/client/conversation-list/conversation-list-store.vala
+++ b/src/client/conversation-list/conversation-list-store.vala
@@ -289,14 +289,13 @@ public class ConversationListStore : Gtk.ListStore {
         } else if (existing_message_data != null &&
             existing_message_data.num_emails != conversation.get_count()) {
             existing_message_data.num_emails = conversation.get_count();
-            
-            Gtk.TreePath? path = get_path(iter);
-            if (path != null) {
-                row_changed(path, iter);
-            } else {
-                debug("Cannot refresh conversation: no path for iterator");
-            }
         }
+        
+        Gtk.TreePath? path = get_path(iter);
+        if (path != null)
+            row_changed(path, iter);
+        else
+            debug("Cannot refresh conversation: no path for iterator");
     }
     
     private void refresh_flags(Geary.App.Conversation conversation) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]