mirror of git://git.sysmocom.de/ofono
sms: Only emit property if value actually differs
This commit is contained in:
parent
7a4834a34a
commit
4d82b67ea1
|
@ -276,14 +276,15 @@ static DBusMessage *sms_set_property(DBusConnection *conn, DBusMessage *msg,
|
||||||
|
|
||||||
dbus_message_iter_get_basic(&var, &value);
|
dbus_message_iter_get_basic(&var, &value);
|
||||||
|
|
||||||
sms->use_delivery_reports = value;
|
|
||||||
|
|
||||||
g_dbus_send_reply(conn, msg, DBUS_TYPE_INVALID);
|
g_dbus_send_reply(conn, msg, DBUS_TYPE_INVALID);
|
||||||
|
|
||||||
ofono_dbus_signal_property_changed(conn, path,
|
if (sms->use_delivery_reports != (ofono_bool_t) value) {
|
||||||
|
sms->use_delivery_reports = value;
|
||||||
|
ofono_dbus_signal_property_changed(conn, path,
|
||||||
OFONO_SMS_MANAGER_INTERFACE,
|
OFONO_SMS_MANAGER_INTERFACE,
|
||||||
"UseDeliveryReports",
|
"UseDeliveryReports",
|
||||||
DBUS_TYPE_BOOLEAN, &value);
|
DBUS_TYPE_BOOLEAN, &value);
|
||||||
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue