Skip to content
Snippets Groups Projects
Commit 4ccb2c3e authored by akiraohgaki's avatar akiraohgaki
Browse files

Merge branch 'hotfix'

parents b6fb8b06 928802b6
No related branches found
No related tags found
No related merge requests found
...@@ -314,8 +314,10 @@ void ItemHandler::installDownloadedFile(qtlib::NetworkResource *resource) ...@@ -314,8 +314,10 @@ void ItemHandler::installDownloadedFile(qtlib::NetworkResource *resource)
auto filename = metadata["filename"].toString(); auto filename = metadata["filename"].toString();
auto installType = metadata["install_type"].toString(); auto installType = metadata["install_type"].toString();
auto tempDirPrefix = configHandler_->getAppConfigApplication()["id"].toString() + "_" + filename; QString tempDirPrefix = "temp_" + filename;
qtlib::Dir tempDir(qtlib::Dir::tempPath() + "/" + tempDirPrefix); qtlib::Dir tempDir(qtlib::Dir::genericCachePath() + "/"
+ configHandler_->getAppConfigApplication()["id"].toString() + "/"
+ tempDirPrefix);
tempDir.make(); tempDir.make();
qtlib::Dir tempDestDir(tempDir.path() + "/dest"); qtlib::Dir tempDestDir(tempDir.path() + "/dest");
tempDestDir.make(); tempDestDir.make();
......
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