mirror of
https://github.com/gtalent/sc9k.git
synced 2025-01-23 10:53:37 -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/.
|
||||
*/
|
||||
|
||||
#include <QFormLayout>
|
||||
#include <QHBoxLayout>
|
||||
#include <QLineEdit>
|
||||
#include <QPushButton>
|
||||
#include <QStatusBar>
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
* 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/.
|
||||
*/
|
||||
|
||||
#include <QNetworkReply>
|
||||
#include <QNetworkRequest>
|
||||
#include <QUrl>
|
||||
@ -40,7 +41,8 @@ void OBSClient::setSlidesVisible(int state) {
|
||||
void OBSClient::get(QString urlExt) {
|
||||
QUrl url(QString(BaseUrl) + urlExt);
|
||||
QNetworkRequest rqst(url);
|
||||
m_nam->get(rqst)->deleteLater();
|
||||
auto reply = m_nam->get(rqst);
|
||||
connect(reply, &QIODevice::readyRead, reply, &QObject::deleteLater);
|
||||
}
|
||||
|
||||
void OBSClient::poll() {
|
||||
|
Loading…
Reference in New Issue
Block a user