From f573bb18d509010ec7395cd6de356e99047b73ba Mon Sep 17 00:00:00 2001 From: Akira Ohgaki <akiraohgaki@gmail.com> Date: Fri, 7 Oct 2016 22:26:07 +0900 Subject: [PATCH] Process --- src/handlers/xdgurl.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/handlers/xdgurl.cpp b/src/handlers/xdgurl.cpp index fe9b7f6..82b7cae 100644 --- a/src/handlers/xdgurl.cpp +++ b/src/handlers/xdgurl.cpp @@ -250,12 +250,7 @@ void XdgUrl::process() */ if (isValid()) { - if (_metadata["command"].toString() == "download") { - connect(_asyncNetwork, &Core::Network::finished, this, &XdgUrl::_saveDownloadedFile); - } - else if (_metadata["command"].toString() == "install") { - connect(_asyncNetwork, &Core::Network::finished, this, &XdgUrl::_installDownloadedFile); - } + connect(_asyncNetwork, &Core::Network::finished, this, &XdgUrl::_downloaded); _asyncNetwork->get(QUrl(_metadata["url"].toString())); } } -- GitLab