skip the SIM page also in case of no modems/SIM slots
commit1356e8b77e9151afb6caf593ca297b0c7a175524
authorLukáš Tinkl <lukas.tinkl@canonical.com>
dateThu 17 Dec 2015, 13:33 (11 years ago)
parent4bf07da
qml/Wizard/Pages/10-welcome.qml+2−1
@@ -161,7 +161,8 @@ LocalComponents.Page {
161161 i18n.language = plugin.languageCodes[plugin.currentLanguage]; // re-notify of change after above call (for qlocale change)
162162 root.countryCode = plugin.languageCodes[plugin.currentLanguage].split('_')[1].split('.')[0]; // extract the country code, save it for the timezone page
163163
164− if (root.simManager0.present || root.simManager1.present || root.seenSIMPage) // go to next page
164+ if (!root.modemManager.available || root.modemManager.modems.length === 0 ||
165+ root.simManager0.present || root.simManager1.present || root.seenSIMPage) // go to next page
165166 pageStack.next();
166167 else
167168 pageStack.load(Qt.resolvedUrl("sim.qml")); // show the SIM page