on xenial help sign in
skip the SIM page also in case of no modems/SIM slots
1356e8bLukáš Tinkl
qml/Wizard/Pages/10-welcome.qml+2−1
@@ -161,7 +161,8 @@ LocalComponents.Page {
161 i18n.language = plugin.languageCodes[plugin.currentLanguage]; // re-notify of change after above call (for qlocale change)
161 i18n.language = plugin.languageCodes[plugin.currentLanguage]; // re-notify of change after above call (for qlocale change)
162 root.countryCode = plugin.languageCodes[plugin.currentLanguage].split('_')[1].split('.')[0]; // extract the country code, save it for the timezone page
162 root.countryCode = plugin.languageCodes[plugin.currentLanguage].split('_')[1].split('.')[0]; // extract the country code, save it for the timezone page
163
163
164+ if (!root.modemManager.available || root.modemManager.modems.length === 0 ||
164− if (root.simManager0.present || root.simManager1.present || root.seenSIMPage) // go to next page
165+ root.simManager0.present || root.simManager1.present || root.seenSIMPage) // go to next page
165 pageStack.next();
166 pageStack.next();
166 else
167 else
167 pageStack.load(Qt.resolvedUrl("sim.qml")); // show the SIM page
168 pageStack.load(Qt.resolvedUrl("sim.qml")); // show the SIM page