Merge pull request #466 from frostworx/master

minor qt5 fix

Former-commit-id: e2f74448dccb2a4dc93db66ec41d9252d91878ef
This commit is contained in:
tvdzwan 2016-02-08 14:52:15 +01:00
commit bdfe515451
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ void LedDevicePhilipsHue::put(QString route, QString content) {
QString url = QString("http://%1/api/%2/%3").arg(host).arg(username).arg(route);
// Perfrom request
QNetworkRequest request(url);
QNetworkReply* reply = manager->put(request, content.toAscii());
QNetworkReply* reply = manager->put(request, content.toLatin1());
// Connect finished signal to quit slot of the loop.
QEventLoop loop;
loop.connect(reply, SIGNAL(finished()), SLOT(quit()));