Merge lp:~unity-api-team/indicator-network/no-ofono-fix into lp:indicator-network/14.10
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Jussi Pakkanen | ||||
Approved revision: | 330 | ||||
Merged at revision: | 332 | ||||
Proposed branch: | lp:~unity-api-team/indicator-network/no-ofono-fix | ||||
Merge into: | lp:indicator-network/14.10 | ||||
Diff against target: |
92 lines (+22/-16) 3 files modified
network/modem-manager.cpp (+10/-10) network/root-state.cpp (+2/-1) network/wwan-section.cpp (+10/-5) |
||||
To merge this branch: | bzr merge lp:~unity-api-team/indicator-network/no-ofono-fix | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Pete Woods (community) | Approve | ||
Jussi Pakkanen (community) | Approve | ||
Review via email: mp+219833@code.launchpad.net |
Commit message
Fix crash when ofono is not running.
Description of the change
* Ensure the project compiles and the test suite executes without error
done.
* Ensure that non-obvious code has comments explaining it
It's clear as black.
* If the change works on specific profiles, please include those in the merge description
Affects all profiles.
TestPlan: https:/
silo: https:/
Note to Reviewers:
No need to run the autopilot tests.
All you need to test is that after installing the silo and rebooting:
1) indicator-network is available in the panel
2) the indicator has "Wifi" toggle
3) toggling the wifi toggle enables / disables wifi
4) you can connect to a wifi network
5) there is no roaming "R" icon on tablets without modem and indicator does not contain "Cellular Settings..." item OR if the device has a modem the indicator contains "Cellular Settings..." item
6) system-settings wifi page also contains wifi toggle and list of access points if wifi is enabled.
The crash was caused by "use before init" in modem-manager.cpp as ofono_disappeared() was getting called before m_unlockDialog got constructed.
Change in wwan-section.cpp makes sure we don't show the "Cellular Settings..." item on a system where there are no modems.