From bb6f47baf3c9fe605db67de9ff6ca5b3f50d02e3 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Tue, 14 Jan 2014 00:35:33 +0100 Subject: [PATCH] Socket options require Qt 4.6+ --- src/core/corenetwork.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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!"; -- 2.20.1