aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-03-29 17:15:48 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-03-29 17:15:48 +0200
commitdc376bb725a970c654610a21ebe55c53870ae249 (patch)
tree02357f72ada9449e0d338ac53d27534207a095ce /src
parentbb2f9b672c397f53a74b9278152bd01feab1b27b (diff)
3gpp: errors when reloading operator name/code will reset the values in the interface
Diffstat (limited to 'src')
-rw-r--r--src/mm-iface-modem-3gpp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/mm-iface-modem-3gpp.c b/src/mm-iface-modem-3gpp.c
index 054f9c5f..9f0e4d2e 100644
--- a/src/mm-iface-modem-3gpp.c
+++ b/src/mm-iface-modem-3gpp.c
@@ -579,7 +579,6 @@ load_operator_name_ready (MMIfaceModem3gpp *self,
if (error) {
mm_warn ("Couldn't load Operator Name: '%s'", error->message);
g_error_free (error);
- return;
}
g_object_get (self,
@@ -630,7 +629,6 @@ load_operator_code_ready (MMIfaceModem3gpp *self,
if (error) {
mm_warn ("Couldn't load Operator Code: '%s'", error->message);
g_error_free (error);
- return;
}
g_object_get (self,
@@ -639,14 +637,12 @@ load_operator_code_ready (MMIfaceModem3gpp *self,
mm_gdbus_modem3gpp_set_operator_code (skeleton, str);
/* If we also implement the location interface, update the 3GPP location */
- if (MM_IS_IFACE_MODEM_LOCATION (self)) {
+ if (str && MM_IS_IFACE_MODEM_LOCATION (self)) {
guint mcc = 0;
guint mnc = 0;
if (parse_mcc_mnc (str, &mcc, &mnc))
- mm_iface_modem_location_3gpp_update_mcc_mnc (MM_IFACE_MODEM_LOCATION (self),
- mcc,
- mnc);
+ mm_iface_modem_location_3gpp_update_mcc_mnc (MM_IFACE_MODEM_LOCATION (self), mcc, mnc);
}
g_free (str);