mirror of
https://github.com/gtalent/sc9k.git
synced 2025-02-02 17:43:57 -06:00
Fix OBS general GET reply handling
This commit is contained in:
parent
a6ecc22d78
commit
cf7ba2e8f5
@ -6,9 +6,7 @@
|
|||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QFormLayout>
|
|
||||||
#include <QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
#include <QLineEdit>
|
|
||||||
#include <QPushButton>
|
#include <QPushButton>
|
||||||
#include <QStatusBar>
|
#include <QStatusBar>
|
||||||
|
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <QNetworkReply>
|
#include <QNetworkReply>
|
||||||
#include <QNetworkRequest>
|
#include <QNetworkRequest>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
@ -40,7 +41,8 @@ void OBSClient::setSlidesVisible(int state) {
|
|||||||
void OBSClient::get(QString urlExt) {
|
void OBSClient::get(QString urlExt) {
|
||||||
QUrl url(QString(BaseUrl) + urlExt);
|
QUrl url(QString(BaseUrl) + urlExt);
|
||||||
QNetworkRequest rqst(url);
|
QNetworkRequest rqst(url);
|
||||||
m_nam->get(rqst)->deleteLater();
|
auto reply = m_nam->get(rqst);
|
||||||
|
connect(reply, &QIODevice::readyRead, reply, &QObject::deleteLater);
|
||||||
}
|
}
|
||||||
|
|
||||||
void OBSClient::poll() {
|
void OBSClient::poll() {
|
||||||
|
Loading…
Reference in New Issue
Block a user