X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Fremotepeer.cpp;h=e8b682d7e060020f5fa5870d24ed3b974ac90ccf;hb=9cefd598107fcb5dfe6cd100524ab016eae0dca0;hp=f2439fc2548df1ea9c4452510969421919fa1133;hpb=676141b18a54c4aa34d4831b9d054d8d63ba21b1;p=quassel.git 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);