on xenial help sign in
skip the reporting page if the system if configured not to report crashes
commitfc8192ed3694f74615f36040dd22a94865f1d04f authorLukáš Tinkl <lukas.tinkl@canonical.com> dateWed 30 Sep 2015, 18:49 (11 years ago) parentcb37a01
2 files changed+8−1
CMakeLists.txt+1−1 qml/Wizard/Pages/60-reporting.qml+7
CMakeLists.txt+1−1
@@ -57,7 +57,7 @@ find_package(Qt5DBus 5.2 REQUIRED)
5757find_package(Qt5Concurrent 5.2 REQUIRED)
5858find_package(Qt5Sql 5.2 REQUIRED)
5959
60−pkg_check_modules(APPLICATION_API REQUIRED unity-shell-application=8)
60+pkg_check_modules(APPLICATION_API REQUIRED unity-shell-application>=8)
6161
6262# Standard install paths
6363include(GNUInstallDirs)
qml/Wizard/Pages/60-reporting.qml+7
@@ -16,6 +16,7 @@
1616
1717import QtQuick 2.0
1818import Ubuntu.Components 0.1
19+import Ubuntu.SystemSettings.Diagnostics 1.0
1920import ".." as LocalComponents
2021
2122LocalComponents.Page {
@@ -24,6 +25,12 @@ LocalComponents.Page {
2425 title: i18n.tr("Improving your experience")
2526 forwardButtonSourceComponent: forwardButton
2627
28+ skip: !diagnostics.reportCrashes // skip the page when the system is configured not to report crashes
29+
30+ UbuntuDiagnostics {
31+ id: diagnostics
32+ }
33+
2734 Column {
2835 id: column
2936 anchors.fill: content