mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
Merge pull request #466 from frostworx/master
minor qt5 fix Former-commit-id: e2f74448dccb2a4dc93db66ec41d9252d91878ef
This commit is contained in:
commit
bdfe515451
@ -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…
x
Reference in New Issue
Block a user