Merge pull request #5055 from arthomnix/feature/mrpack_export

NOISSUE Fix build on Qt 5.4 (hopefully)
This commit is contained in:
Petr Mrázek 2023-02-05 17:35:26 +01:00 committed by GitHub
commit 3840684a54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,8 +141,6 @@ void InstanceExportTask::lookupSucceeded()
}
}
qDebug() << "Failed files: " << failedFiles;
QJsonObject indexJson;
indexJson.insert("formatVersion", QJsonValue(1));
indexJson.insert("game", QJsonValue("minecraft"));
@ -193,7 +191,7 @@ void InstanceExportTask::lookupSucceeded()
QTemporaryDir tmp;
if (tmp.isValid()) {
Json::write(indexJson, tmp.filePath("modrinth.index.json"));
Json::write(indexJson, tmp.path() + "/modrinth.index.json");
if (!failedFiles.isEmpty()) {
QDir tmpDir(tmp.path());