Merge lp:~mterry/ubuntu-system-settings/wait-for-qofono into lp:ubuntu-system-settings/rtm-14.09

Proposed by Michael Terry
Status: Merged
Approved by: Ken VanDine
Approved revision: 975
Merged at revision: 996
Proposed branch: lp:~mterry/ubuntu-system-settings/wait-for-qofono
Merge into: lp:ubuntu-system-settings/rtm-14.09
Diff against target: 20 lines (+5/-1)
1 file modified
wizard/qml/Pages/20-sim.qml (+5/-1)
To merge this branch: bzr merge lp:~mterry/ubuntu-system-settings/wait-for-qofono
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Jonas G. Drange (community) Approve
Review via email: mp+250349@code.launchpad.net

Commit message

Wait for libqofono to finish initializing before we decide whether to skip the wizard's SIM page or not.

libqofono recently became asynchronous, which the wizard was not prepared for.

Description of the change

Wait for libqofono to finish initializing before we decide whether to skip the wizard's SIM page or not.

libqofono recently became asynchronous, which the wizard was not prepared for.

== Checklist ==

 * Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)
 Yes

 * Did you build your software in a clean sbuild/pbuilder chroot or ppa?
 Just QML

 * Did you build your software in a clean sbuild/pbuilder armhf chroot or ppa?
 Just QML

 * Has your component "TestPlan” been executed successfully on emulator, N4?
 Not the full thing

 * Has a 5 minute exploratory testing run been executed on N4?
 Yes

 * If you changed the packaging (debian), did you subscribe a core-dev to this MP?
 NA

 * If you changed the UI, did you subscribe the design-reviewers to this MP?
 NA

 * What components might get impacted by your changes?
 Just wizard

 * Have you requested review by the teams of these owning components?
 Yes

To post a comment you must log in.
Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

WFM, thanks.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'wizard/qml/Pages/20-sim.qml'
2--- wizard/qml/Pages/20-sim.qml 2014-09-29 20:45:30 +0000
3+++ wizard/qml/Pages/20-sim.qml 2015-02-19 16:50:33 +0000
4@@ -23,11 +23,15 @@
5 title: i18n.tr("Add a SIM card and restart your device")
6 forwardButtonSourceComponent: forwardButton
7
8- // No need for skipValid, since OfonoManager does everything synchronously
9+ skipValid: !manager.available ||
10+ (manager.ready && (manager.modems.length < 1 || simManager0.ready)
11+ && (manager.modems.length < 2 || simManager1.ready))
12 skip: !manager.available || manager.modems.length === 0 || simManager0.present || simManager1.present
13
14 OfonoManager {
15 id: manager
16+ property bool ready: false
17+ onModemsChanged: ready = true
18 }
19
20 // Ideally we would query the system more cleverly than hardcoding two

Subscribers

People subscribed via source and target branches