summaryrefslogtreecommitdiffstats
path: root/examples/network/network-chat/server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/network/network-chat/server.cpp')
-rw-r--r--examples/network/network-chat/server.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/network/network-chat/server.cpp b/examples/network/network-chat/server.cpp
index cc154728d5..b3e4a07f60 100644
--- a/examples/network/network-chat/server.cpp
+++ b/examples/network/network-chat/server.cpp
@@ -61,7 +61,6 @@ Server::Server(QObject *parent)
void Server::incomingConnection(qintptr socketDescriptor)
{
- Connection *connection = new Connection(this);
- connection->setSocketDescriptor(socketDescriptor);
+ Connection *connection = new Connection(socketDescriptor, this);
emit newConnection(connection);
}