Merge branch 'release/2.3.2' into develop

This commit is contained in:
Janek Bevendorff
2018-03-18 01:14:42 +01:00
18 changed files with 180 additions and 70 deletions

View File

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