[evolution-data-server] EDataBook: Silence runtime warnings in direct access mode.
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] EDataBook: Silence runtime warnings in direct access mode.
- Date: Wed, 20 Mar 2013 22:54:30 +0000 (UTC)
commit 65c5256a541fd8617c7bd56fe76dba4b614e6d4c
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Mar 20 15:33:49 2013 -0400
EDataBook: Silence runtime warnings in direct access mode.
e_data_book_report_backend_property_changed() apparently has no way to
report backend property changes in direct access mode. Return silently.
addressbook/libedata-book/e-data-book.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/addressbook/libedata-book/e-data-book.c b/addressbook/libedata-book/e-data-book.c
index 5175d6b..df97293 100644
--- a/addressbook/libedata-book/e-data-book.c
+++ b/addressbook/libedata-book/e-data-book.c
@@ -1778,6 +1778,11 @@ e_data_book_report_backend_property_changed (EDataBook *book,
dbus_interface = book->priv->dbus_interface;
+ /* XXX This will be NULL in direct access mode. No way to
+ * report property changes, I guess. Return silently. */
+ if (dbus_interface == NULL)
+ return;
+
if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_CAPABILITIES)) {
strv = g_strsplit (prop_value, ",", -1);
e_dbus_address_book_set_capabilities (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]