mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
minor qt5 fix
Former-commit-id: 65ab3bb14d6a7ab52e6ab1e8eaa85321dc5fa543
This commit is contained in:
parent
6b052081f7
commit
bbfded147e
@ -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);
|
QString url = QString("http://%1/api/%2/%3").arg(host).arg(username).arg(route);
|
||||||
// Perfrom request
|
// Perfrom request
|
||||||
QNetworkRequest request(url);
|
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.
|
// Connect finished signal to quit slot of the loop.
|
||||||
QEventLoop loop;
|
QEventLoop loop;
|
||||||
loop.connect(reply, SIGNAL(finished()), SLOT(quit()));
|
loop.connect(reply, SIGNAL(finished()), SLOT(quit()));
|
||||||
|
Loading…
Reference in New Issue
Block a user