From: Manuel Nickschas Date: Mon, 13 Jan 2014 23:35:33 +0000 (+0100) Subject: Socket options require Qt 4.6+ X-Git-Tag: 0.10-beta1~51 X-Git-Url: https://git.quassel-irc.org/?a=commitdiff_plain;h=bb6f47baf3c9fe605db67de9ff6ca5b3f50d02e3;hp=ac6b164b8b758deff3ebc3946177988e6d72ca9a;p=quassel.git Socket options require Qt 4.6+ --- diff --git a/src/core/corenetwork.cpp b/src/core/corenetwork.cpp index 206b0194..3fd0a1a7 100644 --- a/src/core/corenetwork.cpp +++ b/src/core/corenetwork.cpp @@ -438,9 +438,9 @@ void CoreNetwork::socketInitialized() if (server.useSsl && !socket.isEncrypted()) return; #endif - +#if QT_VERSION >= 0x040600 socket.setSocketOption(QAbstractSocket::KeepAliveOption, true); - +#endif CoreIdentity *identity = identityPtr(); if (!identity) { qCritical() << "Identity invalid!";