Multiple browser related fixes

This commit is contained in:
varjolintu 2018-01-17 14:55:13 +02:00 committed by Janek Bevendorff
parent ee3ccf151a
commit 8ac909b0eb
No known key found for this signature in database
GPG key ID: 2FDEB0D40BCA5E11
12 changed files with 55 additions and 37 deletions

View file

@ -121,7 +121,7 @@ void NativeMessagingBase::sendReply(const QJsonObject& json)
void NativeMessagingBase::sendReply(const QString& reply)
{
if (!reply.isEmpty()) {
uint len = reply.length();
uint len = reply.length();
std::cout << char(((len>>0) & 0xFF)) << char(((len>>8) & 0xFF)) << char(((len>>16) & 0xFF)) << char(((len>>24) & 0xFF));
std::cout << reply.toStdString() << std::flush;
}