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>
This commit is contained in:
parent
2b1ab81eda
commit
bec9afba6e
@ -1362,13 +1362,12 @@ void QAbstractSocketPrivate::fetchConnectionParameters()
|
|||||||
}
|
}
|
||||||
|
|
||||||
state = QAbstractSocket::ConnectedState;
|
state = QAbstractSocket::ConnectedState;
|
||||||
emit q->stateChanged(state);
|
|
||||||
emit q->connected();
|
|
||||||
|
|
||||||
#if defined(QABSTRACTSOCKET_DEBUG)
|
#if defined(QABSTRACTSOCKET_DEBUG)
|
||||||
qDebug("QAbstractSocketPrivate::fetchConnectionParameters() connection to %s:%i established",
|
qDebug("QAbstractSocketPrivate::fetchConnectionParameters() connection to %s:%i established",
|
||||||
host.toString().toLatin1().constData(), port);
|
host.toString().toLatin1().constData(), port);
|
||||||
#endif
|
#endif
|
||||||
|
emit q->stateChanged(state);
|
||||||
|
emit q->connected();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! \internal
|
/*! \internal
|
||||||
|
Loading…
x
Reference in New Issue
Block a user