From bb584446aa5e60086ec3a7d14069681f3cfb17fa 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 f2439fc2..e8b682d7 100644 --- a/src/common/remotepeer.cpp +++ b/src/common/remotepeer.cpp @@ -189,7 +189,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