Don't emit the Operator changed if not registered

SPN Update emits the Operator property changed signal.  However,
this should not happen if there is no current operator
This commit is contained in:
Denis Kenzior 2009-05-28 18:16:40 -05:00
parent 02555a3a63
commit 99456167ab
1 changed files with 3 additions and 0 deletions

View File

@ -1103,6 +1103,9 @@ static void ofono_update_spn(struct ofono_modem *modem, const char *spn,
if (roaming_spn_dpy)
netreg->flags |= NETWORK_REGISTRATION_FLAG_ROAMING_SHOW_SPN;
if (!netreg->current_operator)
return;
operator = get_operator_display_name(modem);
dbus_gsm_signal_property_changed(conn, modem->path,