diff options
Diffstat (limited to 'src/webchannel/qwebsockettransport.cpp')
-rw-r--r-- | src/webchannel/qwebsockettransport.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/webchannel/qwebsockettransport.cpp b/src/webchannel/qwebsockettransport.cpp index be991a8..9c9ef97 100644 --- a/src/webchannel/qwebsockettransport.cpp +++ b/src/webchannel/qwebsockettransport.cpp @@ -67,12 +67,12 @@ QWebSocketTransport::~QWebSocketTransport() void QWebSocketTransport::sendMessage(const QByteArray &message) const { - d->sendMessage(message); + d->sendMessage(QString::fromUtf8(message)); } void QWebSocketTransport::sendMessage(const QString &message) const { - d->sendMessage(message.toUtf8()); + d->sendMessage(message); } void QWebSocketTransport::setMessageHandler(QWebChannelMessageHandlerInterface *handler) |