on xenial help sign in
fix the SIM page not appearing sometimes
commit8512d50dc677ed691d2133bf204f8ffb26bcabc4 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateThu 21 Jan 2016, 09:29 (11 years ago) parent2bb7773
1 file changed+3−2
qml/Wizard/Pages/10-welcome.qml+3−2
qml/Wizard/Pages/10-welcome.qml+3−2
@@ -157,8 +157,9 @@ LocalComponents.Page {
157157 i18n.language = plugin.languageCodes[plugin.currentLanguage]; // re-notify of change after above call (for qlocale change)
158158 root.countryCode = plugin.languageCodes[plugin.currentLanguage].split('_')[1].split('.')[0]; // extract the country code, save it for the timezone page
159159
160− if (!root.modemManager.available || root.modemManager.modems.length === 0 ||
161− root.simManager0.present || root.simManager1.present || root.seenSIMPage) // go to next page
160+ if (!root.modemManager.available || !root.modemManager.ready || root.modemManager.modems.length === 0 ||
161+ (root.simManager0.present && root.simManager0.ready) || (root.simManager1.present && root.simManager1.ready) ||
162+ root.seenSIMPage) // go to next page
162163 pageStack.next();
163164 else
164165 pageStack.load(Qt.resolvedUrl("sim.qml")); // show the SIM page