iface-modem: when transitioning to ENABLED check registration-specific states

This commit is contained in:
Aleksander Morgado
2012-10-24 16:22:25 +02:00
parent f667898eca
commit a12d1e36b0

View File

@@ -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;