Merge lp:~nik90/ubuntu-clock-app/fix-alarm-sound-toggle-bug into lp:ubuntu-clock-app

Proposed by Nekhelesh Ramananthan
Status: Merged
Approved by: Nekhelesh Ramananthan
Approved revision: 68
Merged at revision: 66
Proposed branch: lp:~nik90/ubuntu-clock-app/fix-alarm-sound-toggle-bug
Merge into: lp:ubuntu-clock-app
Diff against target: 41 lines (+9/-3)
2 files modified
app/alarm/AlarmSound.qml (+7/-3)
debian/changelog (+2/-0)
To merge this branch: bzr merge lp:~nik90/ubuntu-clock-app/fix-alarm-sound-toggle-bug
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Victor Thompson Approve
Review via email: mp+232007@code.launchpad.net

Commit message

Fixed clicking on an alarm sound that is already selected causing an incorrect toggle state

Description of the change

Fixed clicking on an alarm sound that is already selected causing an incorrect toggle state

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Victor Thompson (vthompson) wrote :

I have 1 inline comment/question, but this looks good otherwise!

review: Needs Information
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

> I have 1 inline comment/question, but this looks good otherwise!

Thnx. Removed that line of code. I had it to help distinguish the alarm sound that was selected from others. But I will do after confirming with designer rather than just change it in this MP.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Victor Thompson (vthompson) wrote :

LGTM!

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'app/alarm/AlarmSound.qml'
2--- app/alarm/AlarmSound.qml 2014-08-24 12:47:50 +0000
3+++ app/alarm/AlarmSound.qml 2014-08-25 09:59:28 +0000
4@@ -95,10 +95,10 @@
5 checked: alarmSound.subText === _soundName.text ? true
6 : false
7 onClicked: {
8+ previewAlarmSound.source = fileURL
9+ previewAlarmSound.play()
10+
11 if (checked) {
12- previewAlarmSound.source = fileURL
13- previewAlarmSound.play()
14-
15 alarmSound.subText = _soundName.text
16 alarm.sound = fileURL
17
18@@ -110,6 +110,10 @@
19 }
20 }
21 }
22+
23+ else {
24+ checked = !checked
25+ }
26 }
27 }
28 }
29
30=== modified file 'debian/changelog'
31--- debian/changelog 2014-08-24 12:48:27 +0000
32+++ debian/changelog 2014-08-25 09:59:28 +0000
33@@ -14,6 +14,8 @@
34 sound page. (LP: #1355410)
35 * Changed project name and neccessary support variables from com.ubuntu.devel
36 to com.ubuntu.clock in the CMakeList.txt, manifest.json and autopilot files.
37+ * Fixed tapping an alarm sound that is already selected toggles it
38+ incorrectly (LP: #1360677)
39 * Updated QtQuick library imports to v2.3
40
41 [Zsombor Egri]

Subscribers

People subscribed via source and target branches