[geary/wip/135-contact-popovers: 18/20] fixup contact change updating



commit 7f347351af023136516d217a163f4e36c5dacdd7
Author: Michael Gratton <mike vee net>
Date:   Sat Mar 16 19:53:24 2019 +1100

    fixup contact change updating

 src/client/application/application-contact.vala | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/src/client/application/application-contact.vala b/src/client/application/application-contact.vala
index d339d3c1..d7dec40f 100644
--- a/src/client/application/application-contact.vala
+++ b/src/client/application/application-contact.vala
@@ -109,6 +109,8 @@ public class Application.Contact : Geary.BaseObject {
                 // XXX cancellable
             );
         }
+
+        changed();
     }
 
     /** Returns a string representation for debugging */
@@ -150,9 +152,14 @@ public class Application.Contact : Geary.BaseObject {
         if (replacement == null) {
             ContactStore? store = this.store;
             if (store != null) {
-                replacement = yield store.individuals.look_up_individual(
-                    this.individual.id
-                );
+                try {
+                    replacement = yield store.individuals.look_up_individual(
+                        this.individual.id
+                    );
+                } catch (GLib.Error err) {
+                    debug("Error loading replacement for Folks %s: %s",
+                          this.individual.id, err.message);
+                }
             }
         }
 


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