diff options
Diffstat (limited to 'src/websockets/qwebsocket.cpp')
-rw-r--r-- | src/websockets/qwebsocket.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/websockets/qwebsocket.cpp b/src/websockets/qwebsocket.cpp index 45394e3..6e60230 100644 --- a/src/websockets/qwebsocket.cpp +++ b/src/websockets/qwebsocket.cpp @@ -262,6 +262,8 @@ QWebSocket::QWebSocket(const QString &origin, QObject *parent) : QObject(*(new QWebSocketPrivate(origin, version, this)), parent) { + Q_D(QWebSocket); + d->init(); } /*! @@ -301,6 +303,8 @@ QWebSocket::QWebSocket(QTcpSocket *pTcpSocket, QWebSocketProtocol::Version version, QObject *parent) : QObject(*(new QWebSocketPrivate(pTcpSocket, version, this)), parent) { + Q_D(QWebSocket); + d->init(); } /*! |