summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlex Trotsenko <alex1973tr@gmail.com>2017-09-25 16:35:22 +0300
committerAlex Trotsenko <alex1973tr@gmail.com>2017-09-25 16:06:29 +0000
commitbec9afba6e9f977f923357a53c60f8d88e0e6cd6 (patch)
tree38b6d0a0b3a2bf3522d75b3d62ffa4f25bf11f40 /src
parent2b1ab81edaf19042d11b4ac1836f527c8590ee45 (diff)
QAbstractSocket: fix printing a debug message on successful connect
To have a consistent debug listing, we should print this message just before emitting the signals. Change-Id: Ibffcf1134d8b16c114fb54cad9afae86b5153f95 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/network/socket/qabstractsocket.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/network/socket/qabstractsocket.cpp b/src/network/socket/qabstractsocket.cpp
index 34c750eb23..c7b779d5f9 100644
--- a/src/network/socket/qabstractsocket.cpp
+++ b/src/network/socket/qabstractsocket.cpp
@@ -1362,13 +1362,12 @@ void QAbstractSocketPrivate::fetchConnectionParameters()
}
state = QAbstractSocket::ConnectedState;
- emit q->stateChanged(state);
- emit q->connected();
-
#if defined(QABSTRACTSOCKET_DEBUG)
qDebug("QAbstractSocketPrivate::fetchConnectionParameters() connection to %s:%i established",
host.toString().toLatin1().constData(), port);
#endif
+ emit q->stateChanged(state);
+ emit q->connected();
}
/*! \internal