diff options
author | Peter Hartmann <peter.hartmann@trolltech.com> | 2009-04-15 09:58:54 (GMT) |
---|---|---|
committer | Bradley T. Hughes <bradley.hughes@nokia.com> | 2009-04-15 16:14:17 (GMT) |
commit | d2dd145e96ecf4801e39db56a37e21ddea45c8dc (patch) | |
tree | bbbf0da959c28e21eedf985d11513b1f75e308aa /src/network | |
parent | 7cee817b4989ccff6f70b0fd9b87a250bb1ff9e3 (diff) | |
download | Qt-d2dd145e96ecf4801e39db56a37e21ddea45c8dc.zip Qt-d2dd145e96ecf4801e39db56a37e21ddea45c8dc.tar.gz Qt-d2dd145e96ecf4801e39db56a37e21ddea45c8dc.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/network')
-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; |