summaryrefslogtreecommitdiffstats
path: root/examples/network/threadedfortuneserver/fortunethread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/network/threadedfortuneserver/fortunethread.cpp')
-rw-r--r--examples/network/threadedfortuneserver/fortunethread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/threadedfortuneserver/fortunethread.cpp b/examples/network/threadedfortuneserver/fortunethread.cpp
index ddde5121a3..2e730c6c8f 100644
--- a/examples/network/threadedfortuneserver/fortunethread.cpp
+++ b/examples/network/threadedfortuneserver/fortunethread.cpp
@@ -65,7 +65,7 @@ void FortuneThread::run()
QTcpSocket tcpSocket;
//! [1] //! [2]
if (!tcpSocket.setSocketDescriptor(socketDescriptor)) {
- emit error(tcpSocket.error());
+ emit error(tcpSocket.socketError());
return;
}
//! [2] //! [3]