[gnome-contacts] refresh ContactPane when the store is quiescent



commit b1fd21c045a3d9fb6f4eb40d0a5d25e26a1d66ba
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Wed Jun 20 14:17:07 2012 +0200

    refresh ContactPane when the store is quiescent
    
    https://bugzilla.gnome.org/show_bug.cgi?id=678462

 src/contacts-contact-pane.vala |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 2b7ff6a..77073a6 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -2197,6 +2197,12 @@ public class Contacts.ContactPane : ScrolledWindow {
     delete_menu_item = Utils.add_menu_item (context_menu,_("Delete"));
     delete_menu_item.activate.connect (delete_contact);
     delete_menu_item.set_sensitive (false);
+
+    contacts_store.quiescent.connect (() => {
+      // Refresh the view when the store is quiescent as we may have missed
+      // some potential matches while the store was still preparing.
+      update_personas ();
+    });
   }
 
   void link_contact () {



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