summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiels De Graef <nielsdegraef@gmail.com>2020-06-05 11:24:48 +0200
committerNiels De Graef <nielsdegraef@gmail.com>2020-06-05 11:25:34 +0200
commite9ed693346373bcd021300b78c3f106d644dc3d7 (patch)
tree6858968c46964ae7fbde00cb96107b015e0ec78c
parent4b014f3175034c7963e58d2f560172eae814488c (diff)
downloadgnome-contacts-e9ed693346373bcd021300b78c3f106d644dc3d7.tar.gz
window: Fix an unreachable catch clause
-rw-r--r--src/contacts-window.vala12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/contacts-window.vala b/src/contacts-window.vala
index e409478..ff980a6 100644
--- a/src/contacts-window.vala
+++ b/src/contacts-window.vala
@@ -527,11 +527,13 @@ public class Contacts.Window : Gtk.ApplicationWindow {
foreach (var i in individuals)
foreach (var p in i.personas) {
// TODO: make sure it is acctally removed
- try {
- p.store.remove_persona.begin (p);
- } catch (Error e) {
- debug ("Coudln't remove persona");
- }
+ p.store.remove_persona.begin (p, (obj, res) => {
+ try {
+ p.store.remove_persona.end (res);
+ } catch (Error e) {
+ debug ("Coudln't remove persona: %s", e.message);
+ }
+ });
}
});