From dc4845aeed25a91ef8a81cdfa8f0cc1409a6d600 Mon Sep 17 00:00:00 2001 From: Akira Ohgaki <akiraohgaki@gmail.com> Date: Tue, 11 Oct 2016 07:32:43 +0900 Subject: [PATCH] Connect signal and slot --- src/handlers/xdgurl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/handlers/xdgurl.cpp b/src/handlers/xdgurl.cpp index 8b8b547..19ca225 100644 --- a/src/handlers/xdgurl.cpp +++ b/src/handlers/xdgurl.cpp @@ -20,6 +20,8 @@ XdgUrl::XdgUrl(const QString &xdgUrl, Core::Config *appConfig, Core::Config *use { _metadata = _parse(); _destinations = _loadDestinations(); + + connect(_asyncNetwork, &Core::Network::finished, this, &XdgUrl::_downloaded); } QJsonObject XdgUrl::_parse() @@ -306,7 +308,6 @@ void XdgUrl::process() */ if (isValid()) { - connect(_asyncNetwork, &Core::Network::finished, this, &XdgUrl::_downloaded); _asyncNetwork->get(QUrl(_metadata["url"].toString())); } } -- GitLab