From: Manuel Nickschas Date: Wed, 29 Jan 2014 20:54:25 +0000 (+0100) Subject: There won't ever be a Qt 4.9... X-Git-Tag: 0.10-beta1~31 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=bb584446aa5e60086ec3a7d14069681f3cfb17fa;ds=sidebyside There won't ever be a Qt 4.9... ... and this should actually have been a check for Qt 4.7+. --- 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);