diff --git a/src/handlers/xdgurl.cpp b/src/handlers/xdgurl.cpp index fe9b7f609e2f534be65be5f8fe5c8c995c63d76a..82b7cae2b9de9735028e29baefbd2f26387d885f 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())); } }