summaryrefslogtreecommitdiff
path: root/src/contacts-contact-pane.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/contacts-contact-pane.vala')
-rw-r--r--src/contacts-contact-pane.vala10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/contacts-contact-pane.vala b/src/contacts-contact-pane.vala
index 258104e..0b94bc0 100644
--- a/src/contacts-contact-pane.vala
+++ b/src/contacts-contact-pane.vala
@@ -176,6 +176,16 @@ public class Contacts.ContactPane : Adw.Bin {
/* Show fake contact to the user */
/* TODO: block changes to fake contact */
show_contact_sheet ();
+ // Wait that the store gets quiescent if it isn't already
+ if (!this.store.aggregator.is_quiescent) {
+ ulong signal_id;
+ SourceFunc callback = apply_changes.callback;
+ signal_id = this.store.quiescent.connect (() => {
+ callback ();
+ });
+ yield;
+ disconnect (signal_id);
+ }
var fake_individual = individual as FakeIndividual;
if (fake_individual != null && fake_individual.real_individual == null) {
// Create a new persona in the primary store based on the fake persona