on xenial help sign in
implement restart when the SIM card gets inserted
commit3c627b76ac1fd4efa9a3a50f3bb1a941d66cec52 authorLukáš Tinkl <lukas.tinkl@canonical.com> dateFri 3 Jul 2015, 14:15 (11 years ago) parent8839366
1 file changed+3−1
qml/Wizard/Pages/20-sim.qml+3−1
qml/Wizard/Pages/20-sim.qml+3−1
@@ -18,6 +18,7 @@ import QtQuick 2.3
1818import MeeGo.QOfono 0.2
1919import Ubuntu.Components 1.2
2020import Ubuntu.Components.Popups 1.0
21+import Unity.Session 0.1
2122import ".." as LocalComponents
2223
2324LocalComponents.Page {
@@ -49,8 +50,9 @@ LocalComponents.Page {
4950 id: restartButton
5051 text: i18n.tr("Restart")
5152 onClicked: {
52− // TODO reboot for real
5353 PopupUtils.close(restartDialog)
54+ quit()
55+ DBusUnitySessionService.reboot()
5456 }
5557 }
5658 }