X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fcorenetwork.cpp;h=a3a0812aac7d2a37e44a491b60397e439a811bed;hp=1ba393feaf56c89194681cd5d61f81bde4f1822c;hb=4ff76cab24698482ce759cb40a903b9bc26c8fae;hpb=b65b9f7615165e8700a44d59b7275a55558dd45b diff --git a/src/core/corenetwork.cpp b/src/core/corenetwork.cpp index 1ba393fe..a3a0812a 100644 --- a/src/core/corenetwork.cpp +++ b/src/core/corenetwork.cpp @@ -416,11 +416,7 @@ void CoreNetwork::socketHasData() else if (s.endsWith("\n")) s.chop(1); NetworkDataEvent *event = new NetworkDataEvent(EventManager::NetworkIncoming, this, s); -#if QT_VERSION >= 0x040700 event->setTimestamp(QDateTime::currentDateTimeUtc()); -#else - event->setTimestamp(QDateTime::currentDateTime().toUTC()); -#endif emit newEvent(event); } } @@ -450,17 +446,15 @@ void CoreNetwork::socketInitialized() disconnectFromIrc(); return; } - + emit socketOpen(identity, localAddress(), localPort(), peerAddress(), peerPort()); - + Server server = usedServer(); #ifdef HAVE_SSL if (server.useSsl && !socket.isEncrypted()) return; #endif -#if QT_VERSION >= 0x040600 socket.setSocketOption(QAbstractSocket::KeepAliveOption, true); -#endif emit socketInitialized(identity, localAddress(), localPort(), peerAddress(), peerPort());