summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qnativesocketengine_unix.cpp
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2010-01-25 14:12:51 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2010-01-25 14:27:33 (GMT)
commit2109c57ef1fe2d8bbea2ed53c0f76c036843352d (patch)
treeff1f57e9eba0ca8546b8b94ea165e67d6c8eb344 /src/network/socket/qnativesocketengine_unix.cpp
parentef89c6a9f39924a3c8366ad9522b42e7b1915b01 (diff)
downloadQt-2109c57ef1fe2d8bbea2ed53c0f76c036843352d.zip
Qt-2109c57ef1fe2d8bbea2ed53c0f76c036843352d.tar.gz
Qt-2109c57ef1fe2d8bbea2ed53c0f76c036843352d.tar.bz2
QNativeSocketEngine: Set OS error strings on failed read()
Reviewed-by: thiago
Diffstat (limited to 'src/network/socket/qnativesocketengine_unix.cpp')
-rw-r--r--src/network/socket/qnativesocketengine_unix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/socket/qnativesocketengine_unix.cpp b/src/network/socket/qnativesocketengine_unix.cpp
index d3b0fe5..9a2c349 100644
--- a/src/network/socket/qnativesocketengine_unix.cpp
+++ b/src/network/socket/qnativesocketengine_unix.cpp
@@ -903,7 +903,7 @@ qint64 QNativeSocketEnginePrivate::nativeRead(char *data, qint64 maxSize)
case EBADF:
case EINVAL:
case EIO:
- setError(QAbstractSocket::NetworkError, ReadErrorString);
+ //error string is now set in read(), not here in nativeRead()
break;
#ifdef Q_OS_SYMBIAN
case EPIPE: