From 992f3fecd22f7579942215f9305fa054bf3ea3c9 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 13 Nov 2014 14:35:47 +0100 Subject: [PATCH] correct call time --- shell/contents/views/Dialer.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/contents/views/Dialer.qml b/shell/contents/views/Dialer.qml index fea0b81a..a080a74b 100644 --- a/shell/contents/views/Dialer.qml +++ b/shell/contents/views/Dialer.qml @@ -75,6 +75,7 @@ Rectangle { } function secondsToTimeString(seconds) { + seconds = Math.floor(seconds/1000) var h = Math.floor(seconds / 3600); var m = Math.floor((seconds - (h * 3600)) / 60); var s = seconds - h * 3600 - m * 60; @@ -232,7 +233,7 @@ Rectangle { DialerIconButton { Layout.fillWidth: true Layout.fillHeight: true - source: dialer.state == "incoming" ? "call-start" : (manager.isMicrophoneMuted ? "audio-volume-high" : "audio-volume-muted") + source: dialer.state == "incoming" ? "call-start" : (manager.isMicrophoneMuted ? "audio-volume-muted" : "audio-volume-high") Rectangle { z: -1 color: dialer.state == "incoming" ? "green" : "white"