From 980256ac1012f236a600d2a613229c50258a1ed8 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Wed, 6 May 2009 15:58:27 +0200 Subject: fix compilation of QLocalServer when QT_LOCALSOCKET_TCP is defined When QT_LOCALSOCKET_TCP is defined we cannot call setEnabled on the socket notifier. Reviewed-by: ossi --- src/network/socket/qlocalserver.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/network/socket/qlocalserver.cpp b/src/network/socket/qlocalserver.cpp index 1815d73..77a999b 100644 --- a/src/network/socket/qlocalserver.cpp +++ b/src/network/socket/qlocalserver.cpp @@ -276,12 +276,14 @@ QLocalSocket *QLocalServer::nextPendingConnection() if (d->pendingConnections.isEmpty()) return 0; QLocalSocket *nextSocket = d->pendingConnections.dequeue(); +#ifndef QT_LOCALSOCKET_TCP if (d->pendingConnections.size() <= d->maxPendingConnections) #ifndef Q_OS_WIN d->socketNotifier->setEnabled(true); #else d->connectionEventNotifier->setEnabled(true); #endif +#endif return nextSocket; } -- cgit v0.12