Merge lp:~ken-vandine/ubuntu-system-settings/lp1494442 into lp:ubuntu-system-settings

Proposed by Ken VanDine
Status: Merged
Approved by: Ken VanDine
Approved revision: 1539
Merged at revision: 1538
Proposed branch: lp:~ken-vandine/ubuntu-system-settings/lp1494442
Merge into: lp:ubuntu-system-settings
Diff against target: 79 lines (+10/-10)
4 files modified
plugins/security-privacy/PageComponent.qml (+1/-1)
plugins/security-privacy/diagnostics/PageComponent.qml (+4/-4)
plugins/security-privacy/diagnostics/diagnostics.cpp (+2/-2)
plugins/security-privacy/diagnostics/diagnostics.h (+3/-3)
To merge this branch: bzr merge lp:~ken-vandine/ubuntu-system-settings/lp1494442
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Jonas G. Drange (community) Approve
Review via email: mp+272922@code.launchpad.net

Commit message

Used the correct property to determine if whoopsie will automatically report crashes

Description of the change

Used the correct property to determine if whoopsie will automatically report crashes

To post a comment you must log in.
1539. By Ken VanDine

Fixed another occurance of canReportCrashes

Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

Thanks!

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

On 1 October 2015 at 05:32, PS Jenkins bot <email address hidden>
wrote:

> Review: Needs Fixing continuous-integration
>

​Test saw the ofono assertion error.

Oct 1 02:32:51 ubuntu-phablet kernel: [ 209.701938] init: ofono main
process (1270) killed by ABRT signal
Oct 1 02:32:51 ubuntu-phablet kernel: [ 209.701999] init: ofono main
process ended, respawning

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plugins/security-privacy/PageComponent.qml'
2--- plugins/security-privacy/PageComponent.qml 2015-09-09 15:08:03 +0000
3+++ plugins/security-privacy/PageComponent.qml 2015-09-30 14:58:14 +0000
4@@ -212,7 +212,7 @@
5 ListItem.SingleValue {
6 text: i18n.tr("Diagnostics")
7 progression: true
8- value: diagnosticsWidget.canReportCrashes ?
9+ value: diagnosticsWidget.reportCrashes ?
10 /* TRANSLATORS: This string is shown when crash
11 reports are to be sent by the system. */
12 i18n.tr("Sent") :
13
14=== modified file 'plugins/security-privacy/diagnostics/PageComponent.qml'
15--- plugins/security-privacy/diagnostics/PageComponent.qml 2015-07-13 13:13:50 +0000
16+++ plugins/security-privacy/diagnostics/PageComponent.qml 2015-09-30 14:58:14 +0000
17@@ -33,7 +33,7 @@
18 UbuntuDiagnostics {
19 id: diagnosticsWidget
20 function maybeUpdate() {
21- reportCrashesCheck.checked = diagnosticsWidget.canReportCrashes
22+ reportCrashesCheck.checked = diagnosticsWidget.reportCrashes
23 }
24 onReportCrashesChanged: maybeUpdate()
25 }
26@@ -68,11 +68,11 @@
27
28 DiagnosticsCheckEntry {
29 id: reportCrashesCheck
30- checked: diagnosticsWidget.canReportCrashes
31+ checked: diagnosticsWidget.reportCrashes
32 onCheckedChanged: {
33- diagnosticsWidget.canReportCrashes = checked;
34+ diagnosticsWidget.reportCrashes = checked;
35 /* Confirm the setting stuck and reflect it in the UI. */
36- if (checked != diagnosticsWidget.canReportCrashes) {
37+ if (checked != diagnosticsWidget.reportCrashes) {
38 checked = !checked;
39 }
40
41
42=== modified file 'plugins/security-privacy/diagnostics/diagnostics.cpp'
43--- plugins/security-privacy/diagnostics/diagnostics.cpp 2014-06-12 15:12:58 +0000
44+++ plugins/security-privacy/diagnostics/diagnostics.cpp 2015-09-30 14:58:14 +0000
45@@ -71,10 +71,10 @@
46 Q_EMIT reportCrashesChanged();
47 }
48
49-bool Diagnostics::canReportCrashes()
50+bool Diagnostics::reportCrashes()
51 {
52 if (m_whoopsieInterface.isValid()) {
53- return m_whoopsieInterface.property("ReportCrashes").toBool();
54+ return m_whoopsieInterface.property("AutomaticallyReportCrashes").toBool();
55 }
56 return false;
57 }
58
59=== modified file 'plugins/security-privacy/diagnostics/diagnostics.h'
60--- plugins/security-privacy/diagnostics/diagnostics.h 2015-03-16 13:51:36 +0000
61+++ plugins/security-privacy/diagnostics/diagnostics.h 2015-09-30 14:58:14 +0000
62@@ -29,15 +29,15 @@
63 class Diagnostics : public QObject
64 {
65 Q_OBJECT
66- Q_PROPERTY( bool canReportCrashes
67- READ canReportCrashes
68+ Q_PROPERTY( bool reportCrashes
69+ READ reportCrashes
70 WRITE setReportCrashes
71 NOTIFY reportCrashesChanged )
72
73 public:
74 explicit Diagnostics(QObject *parent = 0);
75 ~Diagnostics();
76- bool canReportCrashes();
77+ bool reportCrashes();
78 Q_INVOKABLE void setReportCrashes(bool report);
79 Q_INVOKABLE QString systemIdentifier();
80

Subscribers

People subscribed via source and target branches