Commit 71cc6e91 authored by Andres Reyes Monge's avatar Andres Reyes Monge Committed by Niels De Graef
Browse files

app: Fixes show_individual when store is not ready

(cherry picked from commit c33933b7)
parent 34390442
......@@ -88,6 +88,16 @@ public class Contacts.App : Gtk.Application {
}
public async void show_individual (string id) {
if (contacts_store.is_quiescent) {
show_individual_ready.begin (id);
} else {
contacts_store.quiescent.connect( () => {
show_individual_ready.begin (id);
});
}
}
private async void show_individual_ready (string id) {
Individual? contact = null;
try {
contact = yield contacts_store.aggregator.look_up_individual (id);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment