From f732c3d5743d513329813b90f753b6a46a8fb197 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Wed, 29 Jan 2014 21:54:25 +0100 Subject: [PATCH] There won't ever be a Qt 4.9... ... and this should actually have been a check for Qt 4.7+. --- src/common/remotepeer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/remotepeer.cpp b/src/common/remotepeer.cpp index 3ac55d15..fad05b96 100644 --- a/src/common/remotepeer.cpp +++ b/src/common/remotepeer.cpp @@ -168,7 +168,7 @@ void RemotePeer::handle(const HeartBeat &heartBeat) void RemotePeer::handle(const HeartBeatReply &heartBeatReply) { _heartBeatCount = 0; -#if QT_VERSION >= 0x040900 +#if QT_VERSION >= 0x040700 emit lagUpdated(heartBeatReply.timestamp().msecsTo(QDateTime::currentDateTime().toUTC()) / 2); #else emit lagUpdated(heartBeatReply.timestamp().time().msecsTo(QDateTime::currentDateTime().toUTC().time()) / 2); -- 2.20.1