Socket options require Qt 4.6+
authorManuel Nickschas <sputnick@quassel-irc.org>
Mon, 13 Jan 2014 23:35:33 +0000 (00:35 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 13 Jan 2014 23:35:33 +0000 (00:35 +0100)
src/core/corenetwork.cpp

index 206b019..3fd0a1a 100644 (file)
@@ -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!";