[gnome-contacts/wip/nielsdg/address-book-fix-signal-warning] app: Disconnect signal from correct object
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts/wip/nielsdg/address-book-fix-signal-warning] app: Disconnect signal from correct object
- Date: Wed, 8 Jan 2020 22:42:21 +0000 (UTC)
commit 8612d5ba06f5833cdc162e61d599a83e4fab768a
Author: Niels De Graef <nielsdegraef gmail com>
Date: Wed Jan 8 23:40:36 2020 +0100
app: Disconnect signal from correct object
We connect to the signal of `contacts_store.backend_store`, so make sure
we also pass that object to the disconnect function.
This fixes a warning when closing the "Change Address book" window.
src/contacts-app.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 1cc38ad..668c90e 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -177,7 +177,7 @@ public class Contacts.App : Gtk.Application {
"eds:%s".printf(e_store.id));
}
}
- contacts_store.disconnect (stores_changed_id);
+ contacts_store.backend_store.disconnect (stores_changed_id);
dialog.destroy ();
});
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]