libmm-glib,3gpp-profile: fix loading roaming allowance in DBus dictionary
This commit is contained in:
committed by
Aleksander Morgado
parent
06eafc8c19
commit
2ac4bda846
@@ -682,6 +682,12 @@ mm_3gpp_profile_get_dictionary (MM3gppProfile *self)
|
||||
PROPERTY_SOURCE,
|
||||
g_variant_new_uint32 (self->priv->profile_source));
|
||||
|
||||
if (self->priv->roaming_allowance != MM_BEARER_ROAMING_ALLOWANCE_NONE)
|
||||
g_variant_builder_add (&builder,
|
||||
"{sv}",
|
||||
PROPERTY_ROAMING_ALLOWANCE,
|
||||
g_variant_new_uint32 (self->priv->roaming_allowance));
|
||||
|
||||
if (self->priv->enabled_set)
|
||||
g_variant_builder_add (&builder,
|
||||
"{sv}",
|
||||
@@ -886,6 +892,10 @@ mm_3gpp_profile_consume_variant (MM3gppProfile *self,
|
||||
mm_3gpp_profile_set_profile_source (
|
||||
self,
|
||||
g_variant_get_uint32 (value));
|
||||
else if (g_str_equal (key, PROPERTY_ROAMING_ALLOWANCE))
|
||||
mm_3gpp_profile_set_roaming_allowance (
|
||||
self,
|
||||
g_variant_get_uint32 (value));
|
||||
else {
|
||||
/* Set error */
|
||||
g_set_error (error,
|
||||
|
||||
Reference in New Issue
Block a user