@@ -17,6 +17,7 @@
1717import QtQuick 2.3
1818import Ubuntu.Components 1.2
1919import Ubuntu.Web 0.2
20+import Ubuntu.SystemSettings.Diagnostics 1.0
2021import ".." as LocalComponents
2122
2223LocalComponents.Page {
@@ -36,6 +37,11 @@ LocalComponents.Page {
3637 }
3738 }
3839
40+ UbuntuDiagnostics {
41+ id: diagnostics
42+ objectName: "diagnostics"
43+ }
44+
3945 Column {
4046 id: column
4147 anchors {
@@ -75,7 +81,10 @@ LocalComponents.Page {
7581 id: forwardButton
7682 LocalComponents.StackButton {
7783 text: i18n.tr("Next")
78− onClicked: pageStack.next(); // TODO save that info somewhere
84+ onClicked: {
85+ diagnostics.setReportCrashes(reportCheck.checked);
86+ pageStack.next();
87+ }
7988 }
8089 }
8190}