From 2420ace10a02ccbf60ca1182b2fd97e40ec3f4a2 Mon Sep 17 00:00:00 2001 From: Akira Ohgaki <akiraohgaki@gmail.com> Date: Mon, 17 Oct 2016 14:44:16 +0900 Subject: [PATCH] Set parent object --- src/core/network.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/network.cpp b/src/core/network.cpp index f315410..b99c32b 100644 --- a/src/core/network.cpp +++ b/src/core/network.cpp @@ -10,7 +10,7 @@ namespace Core { Network::Network(const bool &async, QObject *parent) : QObject(parent), _async(async) { - _manager = new QNetworkAccessManager(); + _manager = new QNetworkAccessManager(this); connect(_manager, &QNetworkAccessManager::finished, this, &Network::finished); if (!_async) { -- GitLab