diff options
author | Peter Hartmann <peter.hartmann@trolltech.com> | 2009-04-15 09:58:54 (GMT) |
---|---|---|
committer | Peter Hartmann <peter.hartmann@trolltech.com> | 2009-04-15 10:02:42 (GMT) |
commit | 85db19b2eef0f7933fa28e8e5e1d365aab72458a (patch) | |
tree | f6bb8f9dd8cf1e04a859d471ba896bf67a42fdf6 /src | |
parent | 8f223e03effba1aef6be5e50caf7482af1d7dd8a (diff) | |
download | Qt-85db19b2eef0f7933fa28e8e5e1d365aab72458a.zip Qt-85db19b2eef0f7933fa28e8e5e1d365aab72458a.tar.gz Qt-85db19b2eef0f7933fa28e8e5e1d365aab72458a.tar.bz2 |
BT: QAbstractSocket: fix check for closing state (typo)
emit disconnected() if we were in ConnectedState or in ClosingState
before
Reviewed-by: Thiago
Task-number: 250976
Diffstat (limited to 'src')
-rw-r--r-- | src/network/socket/qabstractsocket.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/socket/qabstractsocket.cpp b/src/network/socket/qabstractsocket.cpp index 910e30a..f8cf4ca 100644 --- a/src/network/socket/qabstractsocket.cpp +++ b/src/network/socket/qabstractsocket.cpp @@ -2279,7 +2279,7 @@ void QAbstractSocket::disconnectFromHostImplementation() emit delayedCloseFinished(); // compat signal #endif // only emit disconnected if we were connected before - if (previousState == ConnectedState || ClosingState) + if (previousState == ConnectedState || previousState == ClosingState) emit disconnected(); d->localPort = 0; |