Skip to content
Snippets Groups Projects
Commit 0ff81485 authored by akiraohgaki's avatar akiraohgaki
Browse files

Result data

parent 3b1b7beb
No related branches found
No related tags found
No related merge requests found
......@@ -136,7 +136,8 @@ void XdgUrl::_saveDownloadedFile(QNetworkReply *reply)
return;
}
QString destination = _destinations[_metadata["type"].toString()].toString();
QString type = _metadata["type"].toString();
QString destination = _destinations[type].toString();
QString path = destination + "/" + _metadata["filename"].toString();
Utility::File::makeDir(destination);
......@@ -150,6 +151,7 @@ void XdgUrl::_saveDownloadedFile(QNetworkReply *reply)
result["success"] = QString("download_success");
result["destination"] = destination;
result["path"] = path;
emit finished(Utility::Json::convertObjToStr(result));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment