Merge lp:~paolorotolo/ubuntu-clock-app/fix-for-1197908 into lp:ubuntu-clock-app/saucy

Proposed by Paolo Rotolo
Status: Merged
Approved by: Nekhelesh Ramananthan
Approved revision: 183
Merged at revision: 185
Proposed branch: lp:~paolorotolo/ubuntu-clock-app/fix-for-1197908
Merge into: lp:ubuntu-clock-app/saucy
Diff against target: 40 lines (+15/-2)
1 file modified
timer/AnalogTimer.qml (+15/-2)
To merge this branch: bzr merge lp:~paolorotolo/ubuntu-clock-app/fix-for-1197908
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Nekhelesh Ramananthan Approve
Review via email: mp+184143@code.launchpad.net

Commit message

Timer: fixed hands reset (LP: #1197908).

Description of the change

Timer: fixed hands reset.
Please see: https://bugs.launchpad.net/ubuntu-clock-app/+bug/1197908

To post a comment you must log in.
183. By Paolo Rotolo

* Added search_timer.start();
* Fixed typo.

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

Testing fix now many times to ensure it is not reproducible any more.

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

After testing it few more times, I can concur that this bug is finally fixed. Thank you very much Paolo!

review: Approve
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
=== modified file 'timer/AnalogTimer.qml'
--- timer/AnalogTimer.qml 2013-09-03 19:22:41 +0000
+++ timer/AnalogTimer.qml 2013-09-05 17:01:01 +0000
@@ -41,6 +41,7 @@
41 // Timer function called by the main clock loop41 // Timer function called by the main clock loop
42 function onTimerUpdate () {42 function onTimerUpdate () {
43 if( timerOn ) {43 if( timerOn ) {
44 inProgressFlag = true;
44 remTime = totalTime - Math.floor((new Date() - startTime)/ 1000) - pauseTime;45 remTime = totalTime - Math.floor((new Date() - startTime)/ 1000) - pauseTime;
4546
46 if (remTime < 0) {47 if (remTime < 0) {
@@ -64,14 +65,26 @@
64 }65 }
6566
66 // Function to disable timer and reset time67 // Function to disable timer and reset time
68 Timer {
69 id: reset_timer
70
71 interval: 200
72 repeat: false
73 onTriggered: {
74 inProgressFlag = true;
75 hourHand.rotationValue = minuteHand.rotationValue = secondHand.rotationValue = 0;
76 inProgressFlag = false;
77 }
78 }
79
67 function reset() {80 function reset() {
81 reset_timer.start();
68 timerOn = false;82 timerOn = false;
69 state = "";83 state = "";
70 startTime = remTime = pauseTime = 0;84 startTime = remTime = pauseTime = 0;
71 hourHand.rotationValue = minuteHand.rotationValue = secondHand.rotationValue = 0;
72 hours = minutes = seconds = totalTime = 0;85 hours = minutes = seconds = totalTime = 0;
73 hourHand.timerValue = minuteHand.timerValue = secondHand.timerValue = 0;86 hourHand.timerValue = minuteHand.timerValue = secondHand.timerValue = 0;
74 } 87 }
7588
76 Repeater {89 Repeater {
77 model: 1290 model: 12

Subscribers

People subscribed via source and target branches