aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-10-24 16:22:25 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-10-30 15:35:33 +0100
commita12d1e36b0bcda80f3b7f0ae28513a086bb3fd91 (patch)
treef3fcae6495ec31d46d63647b997aa4b821d39ab5 /src
parentf667898ecac27906fae9dfa526b799b0c81221f6 (diff)
iface-modem: when transitioning to ENABLED check registration-specific states
Diffstat (limited to 'src')
-rw-r--r--src/mm-iface-modem.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mm-iface-modem.c b/src/mm-iface-modem.c
index 12cdd602..caf8bfe7 100644
--- a/src/mm-iface-modem.c
+++ b/src/mm-iface-modem.c
@@ -1160,6 +1160,10 @@ mm_iface_modem_update_state (MMIfaceModem *self,
new_state = old_state;
}
+ /* Enabled may really be searching or registered */
+ if (new_state == MM_MODEM_STATE_ENABLED)
+ new_state = get_current_consolidated_state (self);
+
/* Update state only if different */
if (new_state != old_state) {
const gchar *dbus_path;